wok-next view lapack/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | de8c315b3046 |
children | e19ff076dc63 |
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="devel@slitaz.org"
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 $PACKAGE $PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_BUILD_TYPE=Release \
22 -DCMAKE_SKIP_RPATH=ON \
23 -DBUILD_SHARED_LIBS=ON \
24 -DBUILD_TESTING=OFF \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DCMAKE_INSTALL_LIBDIR=lib \
27 -DCMAKE_Fortran_COMPILER=gfortran \
28 -DLAPACKE_WITH_TMG=ON \
29 -DCBLAS=ON \
30 -DBUILD_DEPRECATED=ON \
31 .. &&
32 make &&
33 make DESTDIR=$install 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 genpkg_rules() {
42 case $PACKAGE in
43 blas)
44 copy lib*blas.so*
45 DEPENDS="gcc-lib-math libgfortran"
46 CAT="libs|Basic Linear Algebra Subprograms"
47 ;;
48 blas-dev)
49 copy blas* cblas* cblas*/
50 DEPENDS="blas"
51 CAT="development|BLAS development files"
52 ;;
53 lapack)
54 copy liblapack*.so* libtmglib.so
55 DEPENDS="blas gcc-lib-math libgfortran"
56 ;;
57 lapack-dev)
58 copy lapack* lapack*/
59 DEPENDS="lapack blas-dev"
60 ;;
61 esac
62 }