wok-6.x view lapack/receipt @ rev 17024
usbids: up 20140731
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 14 09:20:02 2014 +0000 (2014-08-14) |
parents | 31082f3d4f0f |
children | 453c249b6219 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lapack"
4 VERSION="3.4.0"
5 CATEGORY="misc"
6 SHORT_DESC="Linear Algebra PACKage"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.netlib.org/lapack"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="gcc-lib-base blas"
14 BUILD_DEPENDS="gfortran blas"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 cp -f $src/INSTALL/make.inc.gfortran make.inc
21 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile
23 export FC=gfortran
25 cd $src/INSTALL
26 make clean
27 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
29 cd $src/SRC
30 make clean
32 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
33 cp liblapack.so.$VERSION "$src/"
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
41 install -m755 -d "$fs/usr/lib"
42 install -m755 "$src/liblapack.so.$VERSION" \
43 "$fs/usr/lib/"
44 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
45 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
47 install -m755 -d "$fs/usr/share/licenses"
48 install -m644 "$src/LICENSE" \
49 "$fs/usr/share/licenses/lapack.LICENSE"
50 }