actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 pisitools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. options = "--enable-shared --disable-static --disable-silent-rules"
  12. if get.buildTYPE() == "emul32":
  13. shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig")
  14. options += " --libdir=/usr/lib32"
  15. shelltools.system("./bootstrap.sh")
  16. autotools.configure(options)
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. if get.buildTYPE() == "emul32":
  22. #pisitools.insinto("/usr/lib32", "libopenjpeg/.libs/libopenjpeg.so*")
  23. #pisitools.insinto("/usr/lib32/pkgconfig", "libopenjpeg1.pc")
  24. #pisitools.dosed("%s//usr/lib32/pkgconfig/libopenjpeg1.pc" % get.installDIR(),
  25. #get.emul32prefixDIR(),
  26. #get.defaultprefixDIR())
  27. return
  28. #autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. #pisitools.dosym("openjpeg-1.5/openjpeg.h", "/usr/include/openjpeg.h")
  30. pisitools.dodoc("README*")