actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 cmaketools
  10. from pisi.actionsapi import get
  11. def setup():
  12. #pisitools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
  13. #pisitools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
  14. shelltools.makedirs("build")
  15. shelltools.cd("build")
  16. cmaketools.configure(sourceDir="..")
  17. def build():
  18. shelltools.cd("build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("build")
  22. #shelltools.cd("OpenEXR")
  23. # documents and examples go to "/usr/share/OpenEXR" without these parameters
  24. docdir = "/usr/share/doc/%s" % get.srcNAME()
  25. examplesdir = "%s/examples" % docdir
  26. cmaketools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
  27. #autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))
  28. shelltools.cd("..")
  29. pisitools.dodoc("README*","LICENSE*")