wok view lapack/receipt @ rev 14703
perl-curses: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 07 19:56:18 2013 +0200 (2013-06-07) |
parents | |
children | 6c3718ca17b6 |
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 TARBALL="$PACKAGE-$VERSION.tgz"
9 WEB_SITE="http://www.netlib.org/lapack"
10 WGET_URL="$WEB_SITE/$TARBALL"
12 DEPENDS="gcc-lib-base blas"
13 BUILD_DEPENDS="gfortran blas"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 cp -f $src/INSTALL/make.inc.gfortran make.inc
20 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile
22 export FC=gfortran
24 cd $src/INSTALL
25 make clean
26 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
28 cd $src/SRC
29 make clean
31 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
32 cp liblapack.so.$VERSION "$src/"
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
40 install -m755 -d "$fs/usr/lib"
41 install -m755 "$src/liblapack.so.$VERSION" \
42 "$fs/usr/lib/"
43 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
44 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
46 install -m755 -d "$fs/usr/share/licenses"
47 install -m644 "$src/LICENSE" \
48 "$fs/usr/share/licenses/lapack.LICENSE"
49 }