wok-6.x view lapack/receipt @ rev 24925
updated mpc (0.33 -> 0.34)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 13:55:09 2022 +0100 (2022-04-13) |
parents | 4175a6ed23ea |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lapack"
4 VERSION="3.10.0"
5 CATEGORY="misc"
6 SHORT_DESC="Linear Algebra PACKage."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/Reference-LAPACK/lapack"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Reference-LAPACK/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="blas gcc-lib-base"
15 BUILD_DEPENDS="blas cmake gfortran"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
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
38 # make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
39 # cp liblapack.so.$VERSION "$src/"
41 mkdir _build &&
42 cd _build &&
43 cmake .. \
44 -D CMAKE_INSTALL_LIBDIR=/usr/lib \
45 -D BUILD_SHARED_LIBS=ON &&
46 make &&
47 make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 # mkdir -p $fs/usr
55 # install -m755 -d "$fs/usr/lib"
56 # install -m755 "$src/liblapack.so.$VERSION" \
57 # "$fs/usr/lib/"
58 # ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so"
59 # ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3"
61 cook_copy_files liblapack.so*
63 install -m755 -d "$fs/usr/share/licenses"
64 install -m644 "$src/LICENSE" \
65 "$fs/usr/share/licenses/lapack.LICENSE"
66 }