lapack:moved into main for pisi 2.0

This commit is contained in:
2015-08-10 09:19:46 +03:00
parent 8699a86b62
commit 8e5c4d6b89
4 changed files with 235 additions and 0 deletions
+43
View File
@@ -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")