wok-next view lapack/receipt @ rev 20475
Tiny edits: libsdl-mixer, scummvm, stella, syasokoban, sz81, tuxpaint, workerfm...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Mar 11 13:37:02 2018 +0200 (2018-03-11) |
parents | 38cf0c75fa4c |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lapack"
4 VERSION="3.7.1"
5 CATEGORY="libs"
6 SHORT_DESC="Linear Algebra PACKage"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="http://www.netlib.org/lapack"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 BUILD_DEPENDS="cmake gfortran gcc-lib-math python"
15 SPLIT="blas blas-dev lapack lapack-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir build; cd build
21 cmake .. \
22 -DCMAKE_BUILD_TYPE=Release \
23 -DCMAKE_SKIP_RPATH=ON \
24 -DBUILD_SHARED_LIBS=ON \
25 -DBUILD_TESTING=OFF \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_LIBDIR=lib \
28 -DCMAKE_Fortran_COMPILER=gfortran \
29 -DLAPACKE_WITH_TMG=ON \
30 -DCBLAS=ON \
31 -DBUILD_DEPRECATED=ON &&
32 make &&
33 make DESTDIR=$DESTDIR install
35 licdir="$install/usr/share/licenses"
36 mkdir -p $licdir
37 cp $src/LICENSE $licdir/blas.LICENSE
38 cp $src/LICENSE $licdir/lapack.LICENSE
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 blas)
46 copy lib*blas.so*
47 DEPENDS="gcc-lib-math libgfortran"
48 CAT="libs|Basic Linear Algebra Subprograms"
49 ;;
50 blas-dev)
51 copy blas* cblas* cblas*/
52 DEPENDS="blas"
53 CAT="development|BLAS development files"
54 ;;
55 lapack)
56 copy liblapack*.so* libtmglib.so
57 DEPENDS="blas gcc-lib-math libgfortran"
58 ;;
59 lapack-dev)
60 copy lapack* lapack*/
61 DEPENDS="lapack blas-dev"
62 ;;
63 esac
64 }