wok-current diff lapack/receipt @ rev 14442
Up dropbear (2013.58)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 26 13:24:00 2013 +0200 (2013-04-26) |
parents | |
children | 6c3718ca17b6 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lapack/receipt Fri Apr 26 13:24:00 2013 +0200 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="lapack" 1.7 +VERSION="3.4.0" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="Linear Algebra PACKage" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +TARBALL="$PACKAGE-$VERSION.tgz" 1.12 +WEB_SITE="http://www.netlib.org/lapack" 1.13 +WGET_URL="$WEB_SITE/$TARBALL" 1.14 + 1.15 +DEPENDS="gcc-lib-base blas" 1.16 +BUILD_DEPENDS="gfortran blas" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + cp -f $src/INSTALL/make.inc.gfortran make.inc 1.23 + cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile 1.24 + 1.25 + export FC=gfortran 1.26 + 1.27 + cd $src/INSTALL 1.28 + make clean 1.29 + make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" 1.30 + 1.31 + cd $src/SRC 1.32 + make clean 1.33 + 1.34 + make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared 1.35 + cp liblapack.so.$VERSION "$src/" 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + mkdir -p $fs/usr 1.42 + 1.43 + install -m755 -d "$fs/usr/lib" 1.44 + install -m755 "$src/liblapack.so.$VERSION" \ 1.45 + "$fs/usr/lib/" 1.46 + ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" 1.47 + ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" 1.48 + 1.49 + install -m755 -d "$fs/usr/share/licenses" 1.50 + install -m644 "$src/LICENSE" \ 1.51 + "$fs/usr/share/licenses/lapack.LICENSE" 1.52 +} 1.53 +