actions.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. options = "\
  11. --disable-static \
  12. --disable-silent-rules \
  13. --with-libjasper \
  14. --with-x11 \
  15. --with-included-loaders=png \
  16. "
  17. options += "\
  18. --bindir=/_emul32/bin \
  19. --disable-introspection \
  20. " if get.buildTYPE() == "emul32" else \
  21. "\
  22. --enable-introspection \
  23. "
  24. autotools.configure(options)
  25. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  26. def build():
  27. autotools.make()
  28. def install():
  29. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  30. if get.buildTYPE() == "emul32":
  31. pisitools.domove("/_emul32/bin/gdk-pixbuf-query-loaders", "/usr/bin", "gdk-pixbuf-query-loaders-32")
  32. pisitools.removeDir("/_emul32")
  33. return
  34. pisitools.dosym("/usr/bin/gdk-pixbuf-query-loaders", "/usr/bin/gdk-pixbuf-query-loaders-64")
  35. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")