summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlesibel <lesibel@free.fr>2009-11-10 14:45:09 +0100
committerlesibel <lesibel@free.fr>2009-11-10 14:45:09 +0100
commit92ddc722c5c74e8ab9bf0a78033b209560a736fd (patch)
tree5d74226f213a626ad81835077d5d2429709ee687
parenta2154e3ce1ac8b97c6cd6b738803b7e922c56eba (diff)
downloadnutyx-pakxe-92ddc722c5c74e8ab9bf0a78033b209560a736fd.tar.gz
nutyx-pakxe-92ddc722c5c74e8ab9bf0a78033b209560a736fd.tar.bz2
nutyx-pakxe-92ddc722c5c74e8ab9bf0a78033b209560a736fd.tar.xz
nutyx-pakxe-92ddc722c5c74e8ab9bf0a78033b209560a736fd.zip
Ajout de lapack#3.2.1-1
-rw-r--r--extra/lapack/.footprint10
-rw-r--r--extra/lapack/.md5sum3
-rw-r--r--extra/lapack/Pkgfile32
-rw-r--r--extra/lapack/blas-link.patch24
-rw-r--r--extra/lapack/make.inc.archlinux51
5 files changed, 120 insertions, 0 deletions
diff --git a/extra/lapack/.footprint b/extra/lapack/.footprint
new file mode 100644
index 000000000..6a2c7312d
--- /dev/null
+++ b/extra/lapack/.footprint
@@ -0,0 +1,10 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+lrwxrwxrwx root/root usr/lib/liblapack.so -> liblapack.so.3
+-rwxr-xr-x root/root usr/lib/liblapack.so.3
+lrwxrwxrwx root/root usr/lib/libtmglib.so -> libtmglib.so.3
+-rwxr-xr-x root/root usr/lib/libtmglib.so.3
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/licenses/
+drwxr-xr-x root/root usr/share/licenses/lapack/
+-rw-r--r-- root/root usr/share/licenses/lapack/LICENSE
diff --git a/extra/lapack/.md5sum b/extra/lapack/.md5sum
new file mode 100644
index 000000000..af52c3cf9
--- /dev/null
+++ b/extra/lapack/.md5sum
@@ -0,0 +1,3 @@
+d396697499466389f5bbea6b5ec9b489 blas-link.patch
+a3202a4f9e2f15ffd05d15dab4ac7857 lapack-3.2.1.tgz
+cc368c407e396227c473db5bac92cf02 make.inc.archlinux
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
+}
+
+
diff --git a/extra/lapack/blas-link.patch b/extra/lapack/blas-link.patch
new file mode 100644
index 000000000..7770142be
--- /dev/null
+++ b/extra/lapack/blas-link.patch
@@ -0,0 +1,24 @@
+diff -Naur lapack-3.2.old/SRC/Makefile lapack-3.2/SRC/Makefile
+--- lapack-3.2.old/SRC/Makefile 2009-02-04 11:33:35.006839507 +0100
++++ lapack-3.2/SRC/Makefile 2009-02-04 11:33:51.987551506 +0100
+@@ -367,7 +367,7 @@
+ $(ALLAUX)
+
+ ../$(LAPACKLIB): $(ALLOBJ) $(ALLXOBJ)
+- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ)
++ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) -lblas
+ $(RANLIB) $@
+
+ single: $(SLASRC) $(ALLAUX) $(SCLAUX)
+diff -Naur lapack-3.2.old/TESTING/MATGEN/Makefile lapack-3.2/TESTING/MATGEN/Makefile
+--- lapack-3.2.old/TESTING/MATGEN/Makefile 2009-02-04 11:35:10.426806473 +0100
++++ lapack-3.2/TESTING/MATGEN/Makefile 2009-02-04 11:34:42.850565181 +0100
+@@ -60,7 +60,7 @@
+
+ ../../$(TMGLIB): $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) \
+ $(ZMATGEN) $(DZATGEN)
+- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
++ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) -lblas
+ $(RANLIB) $@
+
+ single: $(SMATGEN) $(SCATGEN)
diff --git a/extra/lapack/make.inc.archlinux b/extra/lapack/make.inc.archlinux
new file mode 100644
index 000000000..a26a8cde1
--- /dev/null
+++ b/extra/lapack/make.inc.archlinux
@@ -0,0 +1,51 @@
+# make include file addapted for archlinux - damir@archlinux.org 20061212
+####################################################################
+# LAPACK make include file. #
+# LAPACK, Version 3.0 #
+# June 30, 1999 #
+####################################################################
+#
+# See the INSTALL/ directory for more examples.
+#
+SHELL = /bin/sh
+#
+# The machine (platform) identifier to append to the library names
+#
+PLAT =
+#
+# Modify the FORTRAN and OPTS definitions to refer to the
+# compiler and desired compiler options for your machine. NOOPT
+# refers to the compiler options desired when NO OPTIMIZATION is
+# selected. Define LOADER and LOADOPTS to refer to the loader and
+# desired load options for your machine.
+#
+FORTRAN = gfortran
+OPTS = -O2
+DRVOPTS = $(OPTS)
+NOOPT = -O0
+LOADER = gfortran
+LOADOPTS =
+#
+# Timer for the SECOND and DSECND routines
+#
+TIMER = INT_ETIME
+#
+# The archiver and the flag(s) to use when building archive (library)
+# If you system has no ranlib, set RANLIB = echo.
+#
+ARCH = gfortran
+# ar
+ARCHFLAGS= -shared -o
+# cr
+RANLIB = echo
+# ranlib
+#
+# The location of the libraries to which you will link. (The
+# machine-specific, optimized BLAS library should be used whenever
+# possible.)
+#
+BLASLIB = -lblas
+LAPACKLIB = liblapack.so.3
+TMGLIB = libtmglib.so.3
+EIGSRCLIB = libeigsrc.so.3
+LINSRCLIB = liblinsrc.so.3