From 92ddc722c5c74e8ab9bf0a78033b209560a736fd Mon Sep 17 00:00:00 2001 From: lesibel Date: Tue, 10 Nov 2009 14:45:09 +0100 Subject: Ajout de lapack#3.2.1-1 --- extra/lapack/Pkgfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 extra/lapack/Pkgfile (limited to 'extra/lapack/Pkgfile') diff --git a/extra/lapack/Pkgfile b/extra/lapack/Pkgfile new file mode 100644 index 000000000..be2741893 --- /dev/null +++ b/extra/lapack/Pkgfile @@ -0,0 +1,32 @@ +# Description: Linear Algebra PACKage +# URL: http://www.netlib.org/lapack +# Maintainer: NuTyX core team +# Packager: lesibel at free dot fr +# Depends on: blas + +name=lapack +version=3.2.1 +release=1 +source=(http://www.netlib.org/$name/$name-$version.tgz + make.inc.archlinux blas-link.patch) + +build() { + cd $name-$version + install -d $PKG/usr/lib + cp $SRC/make.inc.archlinux make.inc + + # fix blas linking FS#13093 + patch -Np1 -i $SRC/blas-link.patch + + # Build with Position Independent Code (PIC) FS#12464 (i686), required for x86_64 + CFLAGS="${CFLAGS} -fPIC" + + make clean + make lib OPTS="${CFLAGS}" NOOPT="${CFLAGS/-O?/-O0}" + install -m755 *.so* $PKG/usr/lib/ + ln -sf liblapack.so.3 $PKG/usr/lib/liblapack.so + ln -sf libtmglib.so.3 $PKG/usr/lib/libtmglib.so + install -Dm644 $SRC/$name-$version/LICENSE $PKG/usr/share/licenses/$name/LICENSE +} + + -- cgit v1.2.3-70-g09d2