wok-6.x annotate blas/receipt @ rev 13282

Up shaarli (0.0.40beta)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 24 13:46:47 2012 +0200 (2012-08-24)
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 }