wok-6.x annotate lapack/receipt @ rev 14104
Up: lifera (1.8.12)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Feb 24 09:11:52 2013 +0100 (2013-02-24) |
parents | |
children | 6c3718ca17b6 |
rev | line source |
---|---|
slaxemulator@13095 | 1 # SliTaz package receipt. |
slaxemulator@13095 | 2 |
slaxemulator@13095 | 3 PACKAGE="lapack" |
slaxemulator@13095 | 4 VERSION="3.4.0" |
slaxemulator@13095 | 5 CATEGORY="misc" |
slaxemulator@13095 | 6 SHORT_DESC="Linear Algebra PACKage" |
slaxemulator@13095 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@13095 | 8 TARBALL="$PACKAGE-$VERSION.tgz" |
slaxemulator@13095 | 9 WEB_SITE="http://www.netlib.org/lapack" |
slaxemulator@13095 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
slaxemulator@13095 | 11 |
slaxemulator@13095 | 12 DEPENDS="gcc-lib-base blas" |
slaxemulator@13095 | 13 BUILD_DEPENDS="gfortran blas" |
slaxemulator@13095 | 14 |
slaxemulator@13095 | 15 # Rules to configure and make the package. |
slaxemulator@13095 | 16 compile_rules() |
slaxemulator@13095 | 17 { |
slaxemulator@13095 | 18 cd $src |
slaxemulator@13095 | 19 cp -f $src/INSTALL/make.inc.gfortran make.inc |
slaxemulator@13095 | 20 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile |
slaxemulator@13095 | 21 |
slaxemulator@13095 | 22 export FC=gfortran |
slaxemulator@13095 | 23 |
slaxemulator@13095 | 24 cd $src/INSTALL |
slaxemulator@13095 | 25 make clean |
slaxemulator@13095 | 26 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" |
slaxemulator@13095 | 27 |
slaxemulator@13095 | 28 cd $src/SRC |
slaxemulator@13095 | 29 make clean |
slaxemulator@13095 | 30 |
slaxemulator@13095 | 31 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared |
slaxemulator@13095 | 32 cp liblapack.so.$VERSION "$src/" |
slaxemulator@13095 | 33 } |
slaxemulator@13095 | 34 |
slaxemulator@13095 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13095 | 36 genpkg_rules() |
slaxemulator@13095 | 37 { |
slaxemulator@13095 | 38 mkdir -p $fs/usr |
slaxemulator@13095 | 39 |
slaxemulator@13095 | 40 install -m755 -d "$fs/usr/lib" |
slaxemulator@13095 | 41 install -m755 "$src/liblapack.so.$VERSION" \ |
slaxemulator@13095 | 42 "$fs/usr/lib/" |
slaxemulator@13095 | 43 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" |
slaxemulator@13095 | 44 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" |
slaxemulator@13095 | 45 |
slaxemulator@13095 | 46 install -m755 -d "$fs/usr/share/licenses" |
slaxemulator@13095 | 47 install -m644 "$src/LICENSE" \ |
slaxemulator@13095 | 48 "$fs/usr/share/licenses/lapack.LICENSE" |
slaxemulator@13095 | 49 } |
slaxemulator@13095 | 50 |