openexr-2.5.3

This commit is contained in:
Rmys
2020-09-20 18:44:33 +03:00
committed by GitHub
parent 056213000d
commit 0b78a9f8cf
2 changed files with 17 additions and 5 deletions
+7 -2
View File
@@ -12,6 +12,8 @@ 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")
shelltools.cd("OpenEXR")
shelltools.system("./bootstrap")
autotools.configure("--enable-shared \
--disable-static")
@@ -19,12 +21,15 @@ def setup():
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
shelltools.cd("OpenEXR")
autotools.make()
def install():
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))
pisitools.dodoc("AUTHORS", "ChangeLog","NEWS", "README","LICENSE")
shelltools.cd("..")
pisitools.dodoc("README*","LICENSE*")