openexr ver. bump

This commit is contained in:
Rmys
2021-10-26 21:59:44 +03:00
parent b1a16e478f
commit 48e19c7537
2 changed files with 29 additions and 20 deletions
+13 -12
View File
@@ -7,29 +7,30 @@
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get
def setup():
pisitools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
pisitools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
#pisitools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
#pisitools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure(sourceDir="..")
shelltools.cd("OpenEXR")
shelltools.system("./bootstrap")
autotools.configure("--enable-shared \
--disable-static")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
shelltools.cd("OpenEXR")
autotools.make()
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("OpenEXR")
shelltools.cd("build")
#shelltools.cd("OpenEXR")
# documents and examples go to "/usr/share/OpenEXR" without these parameters
docdir = "/usr/share/doc/%s" % get.srcNAME()
examplesdir = "%s/examples" % docdir
autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
cmaketools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
#autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
shelltools.cd("..")
pisitools.dodoc("README*","LICENSE*")