wok-next annotate 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
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15472 8 LICENSE="BSD"
al@21020 9 WEB_SITE="http://www.netlib.org/lapack/"
al@19835 10
slaxemulator@13095 11 TARBALL="$PACKAGE-$VERSION.tgz"
al@21020 12 WGET_URL="$WEB_SITE$TARBALL"
slaxemulator@13095 13
al@21094 14 COOKOPTS="force-arch" # different .cmake
al@21094 15
al@19835 16 BUILD_DEPENDS="cmake gfortran gcc-lib-math python"
al@21020 17 SPLIT="blas blas-dev $PACKAGE $PACKAGE-dev"
slaxemulator@13095 18
al@21020 19 compile_rules() {
al@21020 20 mkdir build
al@21020 21 cd build
al@21020 22 cmake \
al@19835 23 -DCMAKE_BUILD_TYPE=Release \
al@19835 24 -DCMAKE_SKIP_RPATH=ON \
al@19835 25 -DBUILD_SHARED_LIBS=ON \
al@19835 26 -DBUILD_TESTING=OFF \
al@19835 27 -DCMAKE_INSTALL_PREFIX=/usr \
al@19835 28 -DCMAKE_INSTALL_LIBDIR=lib \
al@19835 29 -DCMAKE_Fortran_COMPILER=gfortran \
al@19835 30 -DLAPACKE_WITH_TMG=ON \
al@19835 31 -DCBLAS=ON \
al@21020 32 -DBUILD_DEPRECATED=ON \
al@21020 33 .. &&
al@19835 34 make &&
al@21020 35 make DESTDIR=$install install
slaxemulator@13095 36
al@19835 37 licdir="$install/usr/share/licenses"
al@19835 38 mkdir -p $licdir
al@19836 39 cp $src/LICENSE $licdir/blas.LICENSE
al@19836 40 cp $src/LICENSE $licdir/lapack.LICENSE
slaxemulator@13095 41 }
slaxemulator@13095 42
al@21020 43 genpkg_rules() {
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 }