wok annotate blas/receipt @ rev 24593

updated geos and geos-dev (3.8.0 -> 3.10.2)
author Hans-G?nter Theisgen
date Tue Mar 01 13:55:15 2022 +0100 (2022-03-01)
parents 8d6f480bf664
children 00e3b45c063b
rev   line source
slaxemulator@13094 1 # SliTaz package receipt.
slaxemulator@13094 2
slaxemulator@13094 3 PACKAGE="blas"
slaxemulator@13094 4 VERSION="3.4.0"
slaxemulator@13094 5 CATEGORY="misc"
slaxemulator@13094 6 SHORT_DESC="Basic Linear Algebra Subprograms"
slaxemulator@13094 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15482 8 LICENSE="BSD"
slaxemulator@13094 9 SOURCE="lapack"
slaxemulator@13094 10 TARBALL="$SOURCE-$VERSION.tgz"
slaxemulator@13094 11 WEB_SITE="http://www.netlib.org/lapack"
slaxemulator@13094 12 WGET_URL="$WEB_SITE/$TARBALL"
slaxemulator@13094 13
slaxemulator@13094 14 DEPENDS="gcc-lib-base"
slaxemulator@13094 15 BUILD_DEPENDS="gfortran"
slaxemulator@13094 16
pascal@24373 17 # What is the latest version available today?
pascal@24373 18 current_version()
pascal@24373 19 {
pascal@24373 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24373 21 sed '/LAPACK, version/!d;s|.*version ||;s|<.*||;q'
pascal@24373 22 }
pascal@24373 23
slaxemulator@13094 24 # Rules to configure and make the package.
slaxemulator@13094 25 compile_rules()
slaxemulator@13094 26 {
slaxemulator@13094 27 cd $src
slaxemulator@13094 28 cp -f $src/INSTALL/make.inc.gfortran make.inc
slaxemulator@13094 29 cp -f "$stuff/Makefile.blas" $src/BLAS/SRC/Makefile
slaxemulator@13094 30
slaxemulator@13094 31 export FC=gfortran
slaxemulator@13094 32
slaxemulator@13094 33 cd $src/BLAS/SRC
slaxemulator@13094 34 make clean
slaxemulator@13094 35 FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o
slaxemulator@13094 36 FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared
slaxemulator@13094 37 cp libblas.so.$VERSION "$src"
slaxemulator@13094 38 cd $src
slaxemulator@13094 39 ln -s libblas.so.$VERSION libblas.so
slaxemulator@13094 40 }
slaxemulator@13094 41
slaxemulator@13094 42 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@13094 43 genpkg_rules()
slaxemulator@13094 44 {
slaxemulator@13094 45 mkdir -p $fs/usr
slaxemulator@13094 46
slaxemulator@13094 47 install -m755 -d "$fs/usr/lib"
slaxemulator@13094 48 install -m755 "$src/libblas.so.$VERSION" \
slaxemulator@13094 49 "$fs/usr/lib/"
slaxemulator@13094 50 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so"
slaxemulator@13094 51 ln -sf libblas.so.$VERSION "$fs/usr/lib/libblas.so.3"
slaxemulator@13094 52
slaxemulator@13094 53 install -m755 -d "$fs/usr/share/licenses"
slaxemulator@13094 54 install -m644 "$stuff/LICENSE.blas" \
slaxemulator@13094 55 "$fs/usr/share/licenses/blas.LICENSE"
slaxemulator@13094 56 }