wok annotate blas/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | 00e3b45c063b |
children | 5db546345599 |
rev | line source |
---|---|
slaxemulator@13094 | 1 # SliTaz package receipt. |
slaxemulator@13094 | 2 |
slaxemulator@13094 | 3 PACKAGE="blas" |
slaxemulator@13094 | 4 VERSION="3.4.0" |
slaxemulator@13094 | 5 CATEGORY="misc" |
slaxemulator@13094 | 6 SHORT_DESC="Basic Linear Algebra Subprograms" |
slaxemulator@13094 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15482 | 8 LICENSE="BSD" |
slaxemulator@13094 | 9 SOURCE="lapack" |
slaxemulator@13094 | 10 TARBALL="$SOURCE-$VERSION.tgz" |
pascal@24978 | 11 #WEB_SITE="http://www.netlib.org/lapack" |
pascal@24978 | 12 WEB_SITE="https://github.com/xianyi/OpenBLAS" |
pascal@25122 | 13 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL" |
slaxemulator@13094 | 14 |
slaxemulator@13094 | 15 DEPENDS="gcc-lib-base" |
slaxemulator@13094 | 16 BUILD_DEPENDS="gfortran" |
slaxemulator@13094 | 17 |
pascal@24373 | 18 # What is the latest version available today? |
pascal@24373 | 19 current_version() |
pascal@24373 | 20 { |
pascal@24373 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24373 | 22 sed '/LAPACK, version/!d;s|.*version ||;s|<.*||;q' |
pascal@24373 | 23 } |
pascal@24373 | 24 |
slaxemulator@13094 | 25 # Rules to configure and make the package. |
slaxemulator@13094 | 26 compile_rules() |
slaxemulator@13094 | 27 { |
slaxemulator@13094 | 28 cd $src |
slaxemulator@13094 | 29 cp -f $src/INSTALL/make.inc.gfortran make.inc |
slaxemulator@13094 | 30 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile |
slaxemulator@13094 | 31 |
slaxemulator@13094 | 32 export FC=gfortran |
slaxemulator@13094 | 33 |
slaxemulator@13094 | 34 cd $src/BLAS/SRC |
slaxemulator@13094 | 35 make clean |
slaxemulator@13094 | 36 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o |
slaxemulator@13094 | 37 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared |
slaxemulator@13094 | 38 cp libblas.so.$VERSION "$src" |
slaxemulator@13094 | 39 cd $src |
slaxemulator@13094 | 40 ln -s libblas.so.$VERSION libblas.so |
slaxemulator@13094 | 41 } |
slaxemulator@13094 | 42 |
slaxemulator@13094 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13094 | 44 genpkg_rules() |
slaxemulator@13094 | 45 { |
slaxemulator@13094 | 46 mkdir -p $fs/usr |
slaxemulator@13094 | 47 |
slaxemulator@13094 | 48 install -m755 -d "$fs/usr/lib" |
slaxemulator@13094 | 49 install -m755 "$src/libblas.so.$VERSION" \ |
slaxemulator@13094 | 50 "$fs/usr/lib/" |
slaxemulator@13094 | 51 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so" |
slaxemulator@13094 | 52 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3" |
slaxemulator@13094 | 53 |
slaxemulator@13094 | 54 install -m755 -d "$fs/usr/share/licenses" |
slaxemulator@13094 | 55 install -m644 "$stuff/LICENSE.blas" \ |
slaxemulator@13094 | 56 "$fs/usr/share/licenses/blas.LICENSE" |
slaxemulator@13094 | 57 } |