summaryrefslogtreecommitdiffstats
path: root/extra/lapack/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/lapack/Pkgfile')
-rw-r--r--extra/lapack/Pkgfile32
1 files changed, 32 insertions, 0 deletions
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
+}
+
+