wok view lapack/receipt @ rev 24890

trafshow: libpcap 1.10 has its own pcap_init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 05 09:06:43 2022 +0000 (2022-04-05)
parents 5ff61bfa6ca2
children 870e1ce31226
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://www.netlib.org/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 }