wok-next view lapack/receipt @ rev 21094
Apply "force-arch" for selected dev packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 31 17:23:40 2018 +0200 (2018-12-31) |
parents | d5aab818505e |
children |
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 COOKOPTS="force-arch" # different .cmake
16 BUILD_DEPENDS="cmake gfortran gcc-lib-math python"
17 SPLIT="blas blas-dev $PACKAGE $PACKAGE-dev"
19 compile_rules() {
20 mkdir build
21 cd build
22 cmake \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DCMAKE_SKIP_RPATH=ON \
25 -DBUILD_SHARED_LIBS=ON \
26 -DBUILD_TESTING=OFF \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DCMAKE_INSTALL_LIBDIR=lib \
29 -DCMAKE_Fortran_COMPILER=gfortran \
30 -DLAPACKE_WITH_TMG=ON \
31 -DCBLAS=ON \
32 -DBUILD_DEPRECATED=ON \
33 .. &&
34 make &&
35 make DESTDIR=$install install
37 licdir="$install/usr/share/licenses"
38 mkdir -p $licdir
39 cp $src/LICENSE $licdir/blas.LICENSE
40 cp $src/LICENSE $licdir/lapack.LICENSE
41 }
43 genpkg_rules() {
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 }