wok view lapack/receipt @ rev 19880
obexftp: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 02 17:28:17 2017 +0200 (2017-04-02) |
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 }