wok annotate lapack/receipt @ rev 17707

Up marlin: edit last patch (again)
author Yuri Pourre <yuripourre@gmail.com>
date Mon Mar 02 11:31:13 2015 -0300 (2015-03-02)
parents 31082f3d4f0f
children 453c249b6219
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"
pascal@15472 8 LICENSE="BSD"
slaxemulator@13095 9 TARBALL="$PACKAGE-$VERSION.tgz"
slaxemulator@13095 10 WEB_SITE="http://www.netlib.org/lapack"
slaxemulator@13095 11 WGET_URL="$WEB_SITE/$TARBALL"
slaxemulator@13095 12
slaxemulator@13095 13 DEPENDS="gcc-lib-base blas"
slaxemulator@13095 14 BUILD_DEPENDS="gfortran blas"
slaxemulator@13095 15
slaxemulator@13095 16 # Rules to configure and make the package.
slaxemulator@13095 17 compile_rules()
slaxemulator@13095 18 {
slaxemulator@13095 19 cd $src
slaxemulator@13095 20 cp -f $src/INSTALL/make.inc.gfortran make.inc
slaxemulator@13095 21 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile
slaxemulator@13095 22
slaxemulator@13095 23 export FC=gfortran
slaxemulator@13095 24
slaxemulator@13095 25 cd $src/INSTALL
slaxemulator@13095 26 make clean
slaxemulator@13095 27 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
slaxemulator@13095 28
slaxemulator@13095 29 cd $src/SRC
slaxemulator@13095 30 make clean
slaxemulator@13095 31
slaxemulator@13095 32 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
slaxemulator@13095 33 cp liblapack.so.$VERSION "$src/"
slaxemulator@13095 34 }
slaxemulator@13095 35
slaxemulator@13095 36 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@13095 37 genpkg_rules()
slaxemulator@13095 38 {
slaxemulator@13095 39 mkdir -p $fs/usr
slaxemulator@13095 40
slaxemulator@13095 41 install -m755 -d "$fs/usr/lib"
slaxemulator@13095 42 install -m755 "$src/liblapack.so.$VERSION" \
slaxemulator@13095 43 "$fs/usr/lib/"
slaxemulator@13095 44 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
slaxemulator@13095 45 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
slaxemulator@13095 46
slaxemulator@13095 47 install -m755 -d "$fs/usr/share/licenses"
slaxemulator@13095 48 install -m644 "$src/LICENSE" \
slaxemulator@13095 49 "$fs/usr/share/licenses/lapack.LICENSE"
slaxemulator@13095 50 }
slaxemulator@13095 51