wok view blas/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 months ago) |
parents | 8bbdfd03ccf3 |
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="https://github.com/xianyi/OpenBLAS"
12 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$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 - https://github.com/xianyi/OpenBLAS 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;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 }