actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
  12. pisitools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
  13. shelltools.system("./bootstrap")
  14. autotools.configure("--enable-shared \
  15. --disable-static")
  16. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. def build():
  18. autotools.make()
  19. def install():
  20. # documents and examples go to "/usr/share/OpenEXR" without these parameters
  21. docdir = "/usr/share/doc/%s" % get.srcNAME()
  22. examplesdir = "%s/examples" % docdir
  23. autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
  24. pisitools.dodoc("AUTHORS", "ChangeLog","NEWS", "README","LICENSE")