wok-6.x diff lapack/receipt @ rev 24704
updated lapack (3.4.0 -> 3.10.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 14 14:46:55 2022 +0100 (2022-03-14) |
parents | 453c249b6219 |
children | 4175a6ed23ea |
line diff
1.1 --- a/lapack/receipt Fri Feb 11 17:50:36 2022 +0000 1.2 +++ b/lapack/receipt Mon Mar 14 14:46:55 2022 +0100 1.3 @@ -1,17 +1,18 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="lapack" 1.7 -VERSION="3.4.0" 1.8 +VERSION="3.10.0" 1.9 CATEGORY="misc" 1.10 -SHORT_DESC="Linear Algebra PACKage" 1.11 +SHORT_DESC="Linear Algebra PACKage." 1.12 MAINTAINER="slaxemulator@gmail.com" 1.13 LICENSE="BSD" 1.14 -TARBALL="$PACKAGE-$VERSION.tgz" 1.15 -WEB_SITE="http://www.netlib.org/lapack" 1.16 -WGET_URL="$WEB_SITE/$TARBALL" 1.17 +WEB_SITE="https://www.netlib.org/lapack/" 1.18 1.19 -DEPENDS="gcc-lib-base blas" 1.20 -BUILD_DEPENDS="gfortran blas" 1.21 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.22 +WGET_URL="https://github.com/Reference-LAPACK/$PACKAGE/archive/v$VERSION.tar.gz" 1.23 + 1.24 +DEPENDS="blas gcc-lib-base" 1.25 +BUILD_DEPENDS="blas cmake gfortran" 1.26 1.27 # What is the latest version available today? 1.28 current_version() 1.29 @@ -23,36 +24,44 @@ 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 - cd $src 1.34 - cp -f $src/INSTALL/make.inc.gfortran make.inc 1.35 - cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile 1.36 - 1.37 - export FC=gfortran 1.38 +# cp -f $src/INSTALL/make.inc.gfortran make.inc 1.39 +# cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile 1.40 1.41 - cd $src/INSTALL 1.42 - make clean 1.43 - make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" 1.44 +# export FC=gfortran 1.45 1.46 - cd $src/SRC 1.47 - make clean 1.48 +# cd $src/INSTALL 1.49 +# make clean 1.50 +# make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" 1.51 1.52 - make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared 1.53 - cp liblapack.so.$VERSION "$src/" 1.54 +# cd $src/SRC 1.55 +# make clean 1.56 +# make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared 1.57 +# cp liblapack.so.$VERSION "$src/" 1.58 + 1.59 + mkdir _build && 1.60 + cd _build && 1.61 + cmake .. \ 1.62 + -D CMAKE_INSTALL_LIBDIR=/usr/lib/lapack \ 1.63 + -D BUILD_SHARED_LIBS=ON && 1.64 + make && 1.65 + make install 1.66 } 1.67 1.68 # Rules to gen a SliTaz package suitable for Tazpkg. 1.69 genpkg_rules() 1.70 { 1.71 - mkdir -p $fs/usr 1.72 +# mkdir -p $fs/usr 1.73 1.74 - install -m755 -d "$fs/usr/lib" 1.75 - install -m755 "$src/liblapack.so.$VERSION" \ 1.76 - "$fs/usr/lib/" 1.77 - ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" 1.78 - ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" 1.79 - 1.80 - install -m755 -d "$fs/usr/share/licenses" 1.81 - install -m644 "$src/LICENSE" \ 1.82 - "$fs/usr/share/licenses/lapack.LICENSE" 1.83 +# install -m755 -d "$fs/usr/lib" 1.84 +# install -m755 "$src/liblapack.so.$VERSION" \ 1.85 +# "$fs/usr/lib/" 1.86 +# ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" 1.87 +# ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" 1.88 + 1.89 + cook_copy_files liblapack.so* 1.90 + 1.91 + install -m755 -d "$fs/usr/share/licenses" 1.92 + install -m644 "$src/LICENSE" \ 1.93 + "$fs/usr/share/licenses/lapack.LICENSE" 1.94 } 1.95