actions.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 shelltools
  7. from pisi.actionsapi import mesontools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("AUTOPOINT", "true")
  12. options = "-Dpackage-name='GStreamer for PisiLinux' \
  13. -Dpackage-origin='https://www.pisilinux.org' \
  14. -Dptp-helper-permissions=capabilities \
  15. -Ddbghelp=disabled \
  16. "
  17. if get.buildTYPE() == "emul32":
  18. shelltools.export("CC", "%s -m32" % get.CC())
  19. shelltools.export("CXX", "%s -m32" % get.CXX())
  20. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  21. options += " --bindir=/usr/bin32 \
  22. --libdir=/usr/lib32 \
  23. --libexecdir=/usr/libexec32 \
  24. -Dexamples=disabled \
  25. -Dintrospection=disabled \
  26. "
  27. mesontools.configure(options)
  28. def build():
  29. mesontools.build()
  30. def install():
  31. mesontools.install()
  32. if get.buildTYPE() == "emul32":
  33. pisitools.removeDir("/usr/bin32")
  34. pisitools.removeDir("/usr/libexec32")
  35. return
  36. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README*")