actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/copyleft/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 mesontools
  10. from pisi.actionsapi import get
  11. def setup():
  12. options = "--prefix=/usr \
  13. --sysconfdir=/etc"
  14. if get.buildTYPE() == "_emul32":
  15. options += " --libdir=/usr/lib32 \
  16. --bindir=/_emul32/bin \
  17. --sbindir=/_emul32/sbin \
  18. --disable-dtrace"
  19. shelltools.export("CC", "%s -m32" % get.CC())
  20. shelltools.export("CXX", "%s -m32" % get.CXX())
  21. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  22. mesontools.configure(options)
  23. # pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  24. def build():
  25. mesontools.build()
  26. def install():
  27. mesontools.install()
  28. pisitools.dodoc("AUTHORS", "COPYING*", "README*")