wok annotate lapack/receipt @ rev 24911
updated mlvpn (2.3.4 -> 2.3.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 15:36:09 2022 +0100 (2022-04-09) |
parents | 4175a6ed23ea |
children | 5db546345599 |
rev | line source |
---|---|
slaxemulator@13095 | 1 # SliTaz package receipt. |
slaxemulator@13095 | 2 |
slaxemulator@13095 | 3 PACKAGE="lapack" |
Hans-G?nter@24704 | 4 VERSION="3.10.0" |
slaxemulator@13095 | 5 CATEGORY="misc" |
Hans-G?nter@24704 | 6 SHORT_DESC="Linear Algebra PACKage." |
slaxemulator@13095 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15472 | 8 LICENSE="BSD" |
pascal@24894 | 9 WEB_SITE="https://github.com/Reference-LAPACK/lapack" |
slaxemulator@13095 | 10 |
Hans-G?nter@24704 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24704 | 12 WGET_URL="https://github.com/Reference-LAPACK/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@24704 | 13 |
Hans-G?nter@24704 | 14 DEPENDS="blas gcc-lib-base" |
Hans-G?nter@24704 | 15 BUILD_DEPENDS="blas cmake gfortran" |
slaxemulator@13095 | 16 |
pascal@24425 | 17 # What is the latest version available today? |
pascal@24425 | 18 current_version() |
pascal@24425 | 19 { |
pascal@24425 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24425 | 22 } |
pascal@24425 | 23 |
slaxemulator@13095 | 24 # Rules to configure and make the package. |
slaxemulator@13095 | 25 compile_rules() |
slaxemulator@13095 | 26 { |
Hans-G?nter@24704 | 27 # cp -f $src/INSTALL/make.inc.gfortran make.inc |
Hans-G?nter@24704 | 28 # cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile |
slaxemulator@13095 | 29 |
Hans-G?nter@24704 | 30 # export FC=gfortran |
slaxemulator@13095 | 31 |
Hans-G?nter@24704 | 32 # cd $src/INSTALL |
Hans-G?nter@24704 | 33 # make clean |
Hans-G?nter@24704 | 34 # make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" |
slaxemulator@13095 | 35 |
Hans-G?nter@24704 | 36 # cd $src/SRC |
Hans-G?nter@24704 | 37 # make clean |
Hans-G?nter@24704 | 38 # make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared |
Hans-G?nter@24704 | 39 # cp liblapack.so.$VERSION "$src/" |
Hans-G?nter@24704 | 40 |
Hans-G?nter@24704 | 41 mkdir _build && |
Hans-G?nter@24704 | 42 cd _build && |
Hans-G?nter@24704 | 43 cmake .. \ |
pascal@24769 | 44 -D CMAKE_INSTALL_LIBDIR=/usr/lib \ |
Hans-G?nter@24704 | 45 -D BUILD_SHARED_LIBS=ON && |
Hans-G?nter@24704 | 46 make && |
Hans-G?nter@24704 | 47 make install |
slaxemulator@13095 | 48 } |
slaxemulator@13095 | 49 |
slaxemulator@13095 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13095 | 51 genpkg_rules() |
slaxemulator@13095 | 52 { |
Hans-G?nter@24704 | 53 # mkdir -p $fs/usr |
slaxemulator@13095 | 54 |
Hans-G?nter@24704 | 55 # install -m755 -d "$fs/usr/lib" |
Hans-G?nter@24704 | 56 # install -m755 "$src/liblapack.so.$VERSION" \ |
Hans-G?nter@24704 | 57 # "$fs/usr/lib/" |
Hans-G?nter@24704 | 58 # ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" |
Hans-G?nter@24704 | 59 # ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" |
Hans-G?nter@24704 | 60 |
Hans-G?nter@24704 | 61 cook_copy_files liblapack.so* |
Hans-G?nter@24704 | 62 |
Hans-G?nter@24704 | 63 install -m755 -d "$fs/usr/share/licenses" |
Hans-G?nter@24704 | 64 install -m644 "$src/LICENSE" \ |
Hans-G?nter@24704 | 65 "$fs/usr/share/licenses/lapack.LICENSE" |
slaxemulator@13095 | 66 } |
slaxemulator@13095 | 67 |