Info4: << Package: lapack380-shlibs Distribution: 10.9, 10.10, 10.11, 10.12, 10.13, 10.14, 10.14.5 Version: 3.8.0 Revision: 4 # FTBFS with gcc11 Type: gcc (9) Description: Reference L_APACK and BLAS libraries DescDetail: << This package provides a reference implementation of the LAPACK and BLAS libraries (as opposed to the optimized implementations from ATLAS or Accelerate.framework). << DescUsage: << This package contains the shared libraries. The libraries have been renamed to avoid collisions with their counterparts from atlas, libblas.{a,dylib} -> librefblas.{a,dylib} and liblapack.{a,dylib} -> libreflapack.{a.dylib}. This package is an old version, of which we are keeping only the runtime (binary) libraries to avoid breaking existing builds of other packages that had linked to them. << DescPackaging: << Set gcc-fsf-%type_raw[gcc] as linker for liblapacke.dylib and added lapacke_[ds]sytrf_aa_work.o to Makefile targets, as referenced from lapacke_[ds]sytrf_aa.o Some deprecated functions from lapack350 were removed in later versions, so we might want to re-add those symbols here to avoid needing to keep that old version to support packages that are difficult to migrate. << Maintainer: None Homepage: http://www.netlib.org/lapack/ BuildDepends: gcc%type_pkg[gcc]-compiler Depends: gcc%type_pkg[gcc]-shlibs Conflicts: lapack380 (<< 3.8.0-4) Replaces: lapack380 (<< 3.8.0-4) Source: http://www.netlib.org/lapack/lapack-%v.tar.gz Source-Checksum: SHA256(deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6) PatchFile: %n.patch PatchFile-MD5: 66e3008f7d848fac4a1f7737b64355e9 PatchScript: << #!/bin/sh -ev if [ "%m" = "x86_64" ] then m='-m64' else m='-m32' fi patch -p1 < %{PatchFile} perl -p -e " s/gfortran/gfortran-fsf-%type_raw[gcc]/ ; \ s/(^OPTS\s+=\s+).*/\1-O2 -fimplicit-none -funroll-loops -fPIC $m/ ; \ s/gcc/gcc-fsf-%type_raw[gcc]/" \ < make.inc.example > make.inc perl -pi -e ' s,\@CMAKE_INSTALL_FULL_LIBDIR\@,%p/lib/lapack/%v, ; \ s,\@CMAKE_INSTALL_FULL_INCLUDEDIR\@,%p/include/lapack, ; \ s,\@LAPACK_VERSION\@,%v, ; \ s,-llapack,-lreflapack,' < lapack.pc.in > lapack.pc perl -pi -e ' s,\@CMAKE_INSTALL_FULL_LIBDIR\@,%p/lib/lapack/%v, ; \ s,\@CMAKE_INSTALL_FULL_INCLUDEDIR\@,%p/include/lapack, ; \ s,\@LAPACK_VERSION\@,%v,' < LAPACKE/lapacke.pc.in > lapacke.pc perl -pi -e ' s,\@CMAKE_INSTALL_FULL_LIBDIR\@,%p/lib/lapack/%v, ; \ s,\@CMAKE_INSTALL_FULL_INCLUDEDIR\@,%p/include/lapack, ; \ s,\@LAPACK_VERSION\@,%v, ; \ s,-lblas,-lrefblas,' < BLAS/blas.pc.in > blas.pc << CompileScript: << #!/bin/sh -ev /usr/bin/make blaslib /usr/bin/make variants /usr/bin/make lapackelib /usr/bin/make lib /usr/bin/make lapack_install # build dylibs the old-fashioned way # do librefblas first if [ "%m" = "x86_64" ] then m='-m64 ' else m='-m32 ' fi compilerlib="-L%p/lib/gcc%type_raw[gcc]/lib -lgfortran" gfc='gfortran-fsf-%type_raw[gcc] -O2 -fimplicit-none -funroll-loops -fPIC -fno-common '$m ldf='-Wl,-dead_strip_dylibs -dynamiclib -single_module -install_name ' gccc='gcc-fsf-%type_raw[gcc] -O3 -Wl,-dead_strip_dylibs -dynamiclib -single_module -fno-common '$m'-install_name ' TMP=`/usr/bin/mktemp -d %b/lap.XXXXXX` || exit 1 pushd $TMP ar -x ../librefblas.a $gfc $ldf %p/lib/lapack/%v/librefblas.dylib $compilerlib *.o -o ../librefblas.dylib popd TMP=`/usr/bin/mktemp -d %b/lap.XXXXXX` || exit 1 pushd $TMP ar -x ../liblapack.a $gfc $ldf %p/lib/lapack/%v/libreflapack.dylib $compilerlib %b/librefblas.dylib *.o -o ../libreflapack.dylib popd TMP=`/usr/bin/mktemp -d %b/lap.XXXXXX` || exit 1 pushd $TMP ar -x ../libtmglib.a $gfc $ldf %p/lib/lapack/%v/libtmglib.dylib $compilerlib %b/librefblas.dylib %b/libreflapack.dylib *.o -o ../libtmglib.dylib popd pushd $TMP ar -x ../liblapacke.a $gccc %p/lib/lapack/%v/liblapacke.dylib $compilerlib %b/libreflapack.dylib %b/librefblas.dylib *.o -o ../liblapacke.dylib popd for statlib in SRC/VARIANTS/*.a ; do dynlib=lib`basename $statlib .a`.dylib instname=%p/lib/lapack/%v/$dynlib TMP=`/usr/bin/mktemp -d %b/lap.XXXXXX` || exit 1 pushd $TMP ar -x ../$statlib $gfc $ldf $instname $compilerlib %b/librefblas.dylib %b/libreflapack.dylib *.o -o %b/$dynlib popd done << InfoTest: TestScript: /usr/bin/make -j1 blas_testing lapack_testing variants_testing || exit 2 InstallScript: << #!/bin/sh -ev install -d %i/lib/lapack/%v install *.dylib %i/lib/lapack/%v << # not using %v here for subdir to avoid forgetting to update it each time Shlibs: << %p/lib/lapack/3.8.0/libcholrl.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/libcholtop.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/libreflapack.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/liblapacke.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/liblucr.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/liblull.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/liblurec.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/libqrll.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/librefblas.dylib 0.0.0 %n (>=3.8.0-4) %p/lib/lapack/3.8.0/libtmglib.dylib 0.0.0 %n (>=3.8.0-4) << DocFiles: LICENSE DOCS/lapacke.pdf SRC/VARIANTS/README:README.variants License: BSD <<