wok-6.x annotate blas/receipt @ rev 19935
Up grub2 (2.02)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 30 10:12:31 2017 +0200 (2017-04-30) |
parents | af7a6c3cc021 |
children | 9af0e03b8ad0 |
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" |
slaxemulator@13094 | 11 WEB_SITE="http://www.netlib.org/lapack" |
slaxemulator@13094 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
slaxemulator@13094 | 13 |
slaxemulator@13094 | 14 DEPENDS="gcc-lib-base" |
slaxemulator@13094 | 15 BUILD_DEPENDS="gfortran" |
slaxemulator@13094 | 16 |
slaxemulator@13094 | 17 # Rules to configure and make the package. |
slaxemulator@13094 | 18 compile_rules() |
slaxemulator@13094 | 19 { |
slaxemulator@13094 | 20 cd $src |
slaxemulator@13094 | 21 cp -f $src/INSTALL/make.inc.gfortran make.inc |
slaxemulator@13094 | 22 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile |
slaxemulator@13094 | 23 |
slaxemulator@13094 | 24 export FC=gfortran |
slaxemulator@13094 | 25 |
slaxemulator@13094 | 26 cd $src/BLAS/SRC |
slaxemulator@13094 | 27 make clean |
slaxemulator@13094 | 28 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o |
slaxemulator@13094 | 29 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared |
slaxemulator@13094 | 30 cp libblas.so.$VERSION "$src" |
slaxemulator@13094 | 31 cd $src |
slaxemulator@13094 | 32 ln -s libblas.so.$VERSION libblas.so |
slaxemulator@13094 | 33 } |
slaxemulator@13094 | 34 |
slaxemulator@13094 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13094 | 36 genpkg_rules() |
slaxemulator@13094 | 37 { |
slaxemulator@13094 | 38 mkdir -p $fs/usr |
slaxemulator@13094 | 39 |
slaxemulator@13094 | 40 install -m755 -d "$fs/usr/lib" |
slaxemulator@13094 | 41 install -m755 "$src/libblas.so.$VERSION" \ |
slaxemulator@13094 | 42 "$fs/usr/lib/" |
slaxemulator@13094 | 43 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so" |
slaxemulator@13094 | 44 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3" |
slaxemulator@13094 | 45 |
slaxemulator@13094 | 46 install -m755 -d "$fs/usr/share/licenses" |
slaxemulator@13094 | 47 install -m644 "$stuff/LICENSE.blas" \ |
slaxemulator@13094 | 48 "$fs/usr/share/licenses/blas.LICENSE" |
slaxemulator@13094 | 49 } |