wok-next view blas/receipt @ rev 14421
ethumb-dev: update deps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Apr 23 20:09:35 2013 +0200 (2013-04-23) |
parents | |
children | 8d6f480bf664 |
line source
1 # SliTaz package receipt.
3 PACKAGE="blas"
4 VERSION="3.4.0"
5 CATEGORY="misc"
6 SHORT_DESC="Basic Linear Algebra Subprograms"
7 MAINTAINER="slaxemulator@gmail.com"
8 SOURCE="lapack"
9 TARBALL="$SOURCE-$VERSION.tgz"
10 WEB_SITE="http://www.netlib.org/lapack"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="gcc-lib-base"
14 BUILD_DEPENDS="gfortran"
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.blas" $src/BLAS/SRC/Makefile
23 export FC=gfortran
25 cd $src/BLAS/SRC
26 make clean
27 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o
28 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared
29 cp libblas.so.$VERSION "$src"
30 cd $src
31 ln -s libblas.so.$VERSION libblas.so
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
39 install -m755 -d "$fs/usr/lib"
40 install -m755 "$src/libblas.so.$VERSION" \
41 "$fs/usr/lib/"
42 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so"
43 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3"
45 install -m755 -d "$fs/usr/share/licenses"
46 install -m644 "$stuff/LICENSE.blas" \
47 "$fs/usr/share/licenses/blas.LICENSE"
48 }