diff --git a/science/mathematics/lapack/actions.py b/science/mathematics/lapack/actions.py new file mode 100644 index 0000000000..3c9f57085a --- /dev/null +++ b/science/mathematics/lapack/actions.py @@ -0,0 +1,43 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt. + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + + +def setup(): + shelltools.copy("INSTALL/make.inc.gfortran", "make.inc") + + if get.ARCH() == "x86_64": + pisitools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS()) + pisitools.dosed("make.inc", "NOOPT =", "NOOPT =-m64 -fPIC ") + else: + pisitools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS()) + + shelltools.makedirs("build") + shelltools.cd("build") + options = "-DBUILD_SHARED_LIBS=ON \ + -DBUILD_TESTING=OFF" + + if get.buildTYPE() == "static": + options = "-DBUILD_SHARED_LIBS=OFF \ + -DBUILD_TESTING=OFF" + + cmaketools.configure(options, sourceDir="..") + +def build(): + shelltools.cd("build") + cmaketools.make() + +def install(): + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + shelltools.cd("../") + pisitools.dodoc("LICENSE", "README") diff --git a/science/mathematics/lapack/files/lapack-sharedlib.patch b/science/mathematics/lapack/files/lapack-sharedlib.patch new file mode 100644 index 0000000000..4e3dd238a6 --- /dev/null +++ b/science/mathematics/lapack/files/lapack-sharedlib.patch @@ -0,0 +1,59 @@ +diff -Nuar lapack-3.2.1.orig/BLAS/SRC/Makefile lapack-3.2.1/BLAS/SRC/Makefile +--- lapack-3.2.1.orig/BLAS/SRC/Makefile 2010-08-16 13:40:39.106209859 +0300 ++++ lapack-3.2.1/BLAS/SRC/Makefile 2010-08-16 13:46:46.288212746 +0300 +@@ -163,6 +163,12 @@ + + FRC: + @FRC=$(FRC) ++shared: ++ rm -f *.o ++ ar x ../../blas_LINUX.a ++ $(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -lgfortran -lc -lm -shared -Wl,-soname,libblas.so.3 -o libblas.so.3.2.1 ++ ln -s libblas.so.3.2.1 libblas.so.3 ++ ln -s libblas.so.3.2.1 libblas.so + + clean: + rm -f *.o +diff -Nuar lapack-3.2.1.orig/Makefile lapack-3.2.1/Makefile +--- lapack-3.2.1.orig/Makefile 2010-08-16 13:40:39.130213129 +0300 ++++ lapack-3.2.1/Makefile 2010-08-16 13:44:58.463216507 +0300 +@@ -8,8 +8,7 @@ + + all: lapack_install lib lapack_testing blas_testing + +-lib: lapacklib tmglib +-#lib: blaslib variants lapacklib tmglib ++lib: blaslib variants lapacklib tmglib + + clean: cleanlib cleantesting cleanblas_testing + +@@ -18,10 +17,10 @@ + ./testdlamch; ./testsecond; ./testdsecnd; ./testversion ) + + blaslib: +- ( cd BLAS/SRC; $(MAKE) ) ++ ( cd BLAS/SRC; $(MAKE); $(MAKE) shared ) + + lapacklib: lapack_install +- ( cd SRC; $(MAKE) ) ++ ( cd SRC; $(MAKE); $(MAKE) shared ) + + variants: + ( cd SRC/VARIANTS ; $(MAKE)) +diff -Nuar lapack-3.2.1.orig/SRC/Makefile lapack-3.2.1/SRC/Makefile +--- lapack-3.2.1.orig/SRC/Makefile 2010-08-16 13:40:39.165210958 +0300 ++++ lapack-3.2.1/SRC/Makefile 2010-08-16 13:53:41.417213085 +0300 +@@ -408,6 +408,13 @@ + FRC: + @FRC=$(FRC) + ++shared: ++ rm -rf *.o ++ ar x ../lapack_LINUX.a ++ $(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -L../BLAS/SRC -lblas -lgfortran -lc -lm -shared -Wl,-soname,liblapack.so.3 -o liblapack.so.3.2.1 ++ ln -s liblapack.so.3.2.1 liblapack.so.3 ++ ln -s liblapack.so.3.2.1 liblapack.so ++ + clean: + rm -f *.o + diff --git a/science/mathematics/lapack/pspec.xml b/science/mathematics/lapack/pspec.xml new file mode 100644 index 0000000000..554a7dfb37 --- /dev/null +++ b/science/mathematics/lapack/pspec.xml @@ -0,0 +1,110 @@ + + + + + lapack + http://www.netlib.org/lapack + + PisiLinux Community + admins@pisilinux.org + + BSD + library + Linear Algebra PACKage + LAPACK is a standard library for numerical linear algebra. LAPACK provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems. + http://www.netlib.org/lapack/lapack-3.5.0.tgz + + libgfortran + cmake + + + lapack-sharedlib.patch + + + + + + + blas + Basic Linear Algebra Subprograms + Blas is a standard library which provides a number of basic algorithms for numerical algebra. + + libgfortran + + + /usr/lib/libblas.so* + + + + + blas-devel + Development files for blas + static + + blas + + + /usr/lib/libblas.a + /usr/lib/pkgconfig/blas.pc + + + + + lapack + + libgcc + libgfortran + blas + + + /usr/share/doc + /usr/lib/liblapack.so* + + + + + lapack-devel + Development files for lapack + static + + lapack + blas-devel + + + /usr/lib/cmake + /usr/lib/liblapack.a + /usr/lib/pkgconfig/lapack.pc + + + + + + 2014-12-23 + 3.5.0 + Release bump + PisiLinux Community + admins@pisilinux.org + + + 2014-05-26 + 3.5.0 + Release bump + PisiLinux Community + admins@pisilinux.org + + + 2013-11-18 + 3.5.0 + Version bump + Richard de Bruin + richdb@pisilinux.org + + + 2012-10-03 + 3.4.2 + First release + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + \ No newline at end of file diff --git a/science/mathematics/lapack/translations.xml b/science/mathematics/lapack/translations.xml new file mode 100644 index 0000000000..c6d755734d --- /dev/null +++ b/science/mathematics/lapack/translations.xml @@ -0,0 +1,23 @@ + + + + lapack + Doğrusal cebir paketi + LAPACK, nümerik doğrusal cebir için yazılmış standart bir kütüphanedir. Eşanlı doğrusal denklemler sistemini, doğrusal denklemler sistemindeki en küçük kareler tekniğini, özdeğer ve tekil değer problemlerini çözmek için pekçok yordamlar içerir. + + + + blas + Temel lineer cebir yordamları + + + + lapack-devel + lapack için geliştirme dosyaları + + + + blas-devel + blas için geliştirme dosyaları + +