actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. inarytools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
  12. inarytools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
  13. shelltools.system("./bootstrap")
  14. autotools.configure("--enable-shared \
  15. --disable-static")
  16. inarytools.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. inarytools.dodoc("AUTHORS", "ChangeLog","NEWS", "README.md","LICENSE")