wok-next annotate 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
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@19835 14 BUILD_DEPENDS="cmake gfortran gcc-lib-math python"
al@21020 15 SPLIT="blas blas-dev $PACKAGE $PACKAGE-dev"
slaxemulator@13095 16
al@21020 17 compile_rules() {
al@21020 18 mkdir build
al@21020 19 cd build
al@21020 20 cmake \
al@19835 21 -DCMAKE_BUILD_TYPE=Release \
al@19835 22 -DCMAKE_SKIP_RPATH=ON \
al@19835 23 -DBUILD_SHARED_LIBS=ON \
al@19835 24 -DBUILD_TESTING=OFF \
al@19835 25 -DCMAKE_INSTALL_PREFIX=/usr \
al@19835 26 -DCMAKE_INSTALL_LIBDIR=lib \
al@19835 27 -DCMAKE_Fortran_COMPILER=gfortran \
al@19835 28 -DLAPACKE_WITH_TMG=ON \
al@19835 29 -DCBLAS=ON \
al@21020 30 -DBUILD_DEPRECATED=ON \
al@21020 31 .. &&
al@19835 32 make &&
al@21020 33 make DESTDIR=$install 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
al@21020 41 genpkg_rules() {
al@19835 42 case $PACKAGE in
al@19835 43 blas)
al@19835 44 copy lib*blas.so*
al@19835 45 DEPENDS="gcc-lib-math libgfortran"
al@19835 46 CAT="libs|Basic Linear Algebra Subprograms"
al@19835 47 ;;
al@19835 48 blas-dev)
al@19835 49 copy blas* cblas* cblas*/
al@19835 50 DEPENDS="blas"
al@19835 51 CAT="development|BLAS development files"
al@19835 52 ;;
al@19835 53 lapack)
al@19835 54 copy liblapack*.so* libtmglib.so
al@19835 55 DEPENDS="blas gcc-lib-math libgfortran"
al@19835 56 ;;
al@19835 57 lapack-dev)
al@19835 58 copy lapack* lapack*/
al@19835 59 DEPENDS="lapack blas-dev"
al@19835 60 ;;
al@19835 61 esac
slaxemulator@13095 62 }