lapack:moved into main for pisi 2.0
This commit is contained in:
@@ -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")
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>lapack</Name>
|
||||
<Homepage>http://www.netlib.org/lapack</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Linear Algebra PACKage</Summary>
|
||||
<Description>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.</Description>
|
||||
<Archive sha1sum="5870081889bf5d15fd977993daab29cf3c5ea970" type="targz">http://www.netlib.org/lapack/lapack-3.5.0.tgz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libgfortran</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">lapack-sharedlib.patch</Patch>
|
||||
<!--Patch level="1">lapack-parallel-make.patch</Patch-->
|
||||
<!--Patch level="1">lapack-3.3.1-cmake-sover.patch</Patch-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>blas</Name>
|
||||
<Summary>Basic Linear Algebra Subprograms</Summary>
|
||||
<Description>Blas is a standard library which provides a number of basic algorithms for numerical algebra.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgfortran</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/libblas.so*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>blas-devel</Name>
|
||||
<Summary>Development files for blas</Summary>
|
||||
<BuildType>static</BuildType>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">blas</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/libblas.a</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig/blas.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lapack</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>libgfortran</Dependency>
|
||||
<Dependency version="current">blas</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="library">/usr/lib/liblapack.so*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lapack-devel</Name>
|
||||
<Summary>Development files for lapack</Summary>
|
||||
<BuildType>static</BuildType>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">lapack</Dependency>
|
||||
<Dependency release="current">blas-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/cmake</Path>
|
||||
<Path fileType="library">/usr/lib/liblapack.a</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig/lapack.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-12-23</Date>
|
||||
<Version>3.5.0</Version>
|
||||
<Comment>Release bump</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-05-26</Date>
|
||||
<Version>3.5.0</Version>
|
||||
<Comment>Release bump</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-11-18</Date>
|
||||
<Version>3.5.0</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Richard de Bruin</Name>
|
||||
<Email>richdb@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-03</Date>
|
||||
<Version>3.4.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>lapack</Name>
|
||||
<Summary xml:lang="tr">Doğrusal cebir paketi</Summary>
|
||||
<Description xml:lang="tr">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.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>blas</Name>
|
||||
<Summary xml:lang="tr">Temel lineer cebir yordamları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lapack-devel</Name>
|
||||
<Summary xml:lang="tr">lapack için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>blas-devel</Name>
|
||||
<Summary xml:lang="tr">blas için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user