wok-current view lapack/receipt @ rev 24692

updated jsoncpp (1.9.2 -> 1.9.5)
author Hans-G?nter Theisgen
date Sat Mar 12 15:46:33 2022 +0100 (2022-03-12)
parents 6c3718ca17b6
children 5ff61bfa6ca2
line source
1 # SliTaz package receipt.
3 PACKAGE="lapack"
4 VERSION="3.4.0"
5 CATEGORY="misc"
6 SHORT_DESC="Linear Algebra PACKage"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.netlib.org/lapack"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="gcc-lib-base blas"
14 BUILD_DEPENDS="gfortran blas"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 cp -f $src/INSTALL/make.inc.gfortran make.inc
28 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile
30 export FC=gfortran
32 cd $src/INSTALL
33 make clean
34 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
36 cd $src/SRC
37 make clean
39 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
40 cp liblapack.so.$VERSION "$src/"
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/liblapack.so.$VERSION" \
50 "$fs/usr/lib/"
51 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
52 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
54 install -m755 -d "$fs/usr/share/licenses"
55 install -m644 "$src/LICENSE" \
56 "$fs/usr/share/licenses/lapack.LICENSE"
57 }