wok view blas/receipt @ rev 25057
linux-libre: fix linux-libre-3.18.129-gnu-slitaz.config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 11:05:30 2022 +0000 (2022-06-06) |
parents | 9af0e03b8ad0 |
children | 8bbdfd03ccf3 |
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="$WEB_SITE/$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 }