wok-6.x view blas/receipt @ rev 25142
updated pjsip and pjsip-dev (2.8 -> 2.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 14:35:46 2022 +0100 (2022-06-29) |
parents | 00e3b45c063b |
children |
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 WEB_SITE="https://github.com/xianyi/OpenBLAS"
13 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
15 DEPENDS="gcc-lib-base"
16 BUILD_DEPENDS="gfortran"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/LAPACK, version/!d;s|.*version ||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 cp -f $src/INSTALL/make.inc.gfortran make.inc
30 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile
32 export FC=gfortran
34 cd $src/BLAS/SRC
35 make clean
36 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o
37 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared
38 cp libblas.so.$VERSION "$src"
39 cd $src
40 ln -s libblas.so.$VERSION libblas.so
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
48 install -m755 -d "$fs/usr/lib"
49 install -m755 "$src/libblas.so.$VERSION" \
50 "$fs/usr/lib/"
51 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so"
52 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3"
54 install -m755 -d "$fs/usr/share/licenses"
55 install -m644 "$stuff/LICENSE.blas" \
56 "$fs/usr/share/licenses/blas.LICENSE"
57 }