wok-6.x view blas/receipt @ rev 24647
updated hp15c (4.0.00 -> 4.3.00)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 11:23:00 2022 +0100 (2022-03-10) |
parents | 8d6f480bf664 |
children | 00e3b45c063b |
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 LICENSE="BSD"
9 SOURCE="lapack"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="http://www.netlib.org/lapack"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 DEPENDS="gcc-lib-base"
15 BUILD_DEPENDS="gfortran"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/LAPACK, version/!d;s|.*version ||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 cp -f $src/INSTALL/make.inc.gfortran make.inc
29 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile
31 export FC=gfortran
33 cd $src/BLAS/SRC
34 make clean
35 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o
36 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared
37 cp libblas.so.$VERSION "$src"
38 cd $src
39 ln -s libblas.so.$VERSION libblas.so
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
47 install -m755 -d "$fs/usr/lib"
48 install -m755 "$src/libblas.so.$VERSION" \
49 "$fs/usr/lib/"
50 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so"
51 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3"
53 install -m755 -d "$fs/usr/share/licenses"
54 install -m644 "$stuff/LICENSE.blas" \
55 "$fs/usr/share/licenses/blas.LICENSE"
56 }