wok-6.x annotate blas/receipt @ rev 14587
Add missing deps coreutils-disk and coreutils-redirection for use tee and df command instead of Busybox
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun May 26 19:06:03 2013 +0200 (2013-05-26) |
parents | |
children | 8d6f480bf664 |
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" |
slaxemulator@13094 | 8 SOURCE="lapack" |
slaxemulator@13094 | 9 TARBALL="$SOURCE-$VERSION.tgz" |
slaxemulator@13094 | 10 WEB_SITE="http://www.netlib.org/lapack" |
slaxemulator@13094 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
slaxemulator@13094 | 12 |
slaxemulator@13094 | 13 DEPENDS="gcc-lib-base" |
slaxemulator@13094 | 14 BUILD_DEPENDS="gfortran" |
slaxemulator@13094 | 15 |
slaxemulator@13094 | 16 # Rules to configure and make the package. |
slaxemulator@13094 | 17 compile_rules() |
slaxemulator@13094 | 18 { |
slaxemulator@13094 | 19 cd $src |
slaxemulator@13094 | 20 cp -f $src/INSTALL/make.inc.gfortran make.inc |
slaxemulator@13094 | 21 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile |
slaxemulator@13094 | 22 |
slaxemulator@13094 | 23 export FC=gfortran |
slaxemulator@13094 | 24 |
slaxemulator@13094 | 25 cd $src/BLAS/SRC |
slaxemulator@13094 | 26 make clean |
slaxemulator@13094 | 27 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o |
slaxemulator@13094 | 28 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared |
slaxemulator@13094 | 29 cp libblas.so.$VERSION "$src" |
slaxemulator@13094 | 30 cd $src |
slaxemulator@13094 | 31 ln -s libblas.so.$VERSION libblas.so |
slaxemulator@13094 | 32 } |
slaxemulator@13094 | 33 |
slaxemulator@13094 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13094 | 35 genpkg_rules() |
slaxemulator@13094 | 36 { |
slaxemulator@13094 | 37 mkdir -p $fs/usr |
slaxemulator@13094 | 38 |
slaxemulator@13094 | 39 install -m755 -d "$fs/usr/lib" |
slaxemulator@13094 | 40 install -m755 "$src/libblas.so.$VERSION" \ |
slaxemulator@13094 | 41 "$fs/usr/lib/" |
slaxemulator@13094 | 42 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so" |
slaxemulator@13094 | 43 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3" |
slaxemulator@13094 | 44 |
slaxemulator@13094 | 45 install -m755 -d "$fs/usr/share/licenses" |
slaxemulator@13094 | 46 install -m644 "$stuff/LICENSE.blas" \ |
slaxemulator@13094 | 47 "$fs/usr/share/licenses/blas.LICENSE" |
slaxemulator@13094 | 48 } |