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