wok view lapack/receipt @ rev 25783
Up verbiste (0.1.49)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 24 13:23:01 2024 +0000 (6 weeks ago) |
parents | 5db546345599 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lapack"
4 VERSION="3.12.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%/arch*}/tags 2>/dev/null | \
21 sed '/latest/d;/tag\//!d;s|.*tag/v*||;s|".*||;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 }