actions.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #pisitools.cflags.remove("-D_FORTIFY_SOURCE=2")
  12. #pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
  13. shelltools.export("AUTOPOINT", "true")
  14. options = "-Dpackage-name='PisiLinux gstreamer-plugins-base package' \
  15. -Dpackage-origin='https://www.pisilinux.org' \
  16. -Dtremor=disabled \
  17. -Dexamples=disabled \
  18. "
  19. if get.buildTYPE() == "emul32":
  20. shelltools.export("CC", "%s -m32" % get.CC())
  21. shelltools.export("CXX", "%s -m32" % get.CXX())
  22. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  23. options += " --bindir=/usr/bin32 \
  24. --libdir=/usr/lib32 \
  25. -Dgl-graphene=disabled \
  26. -Dintrospection=disabled \
  27. "
  28. else:
  29. options += "-Dgl-graphene=enabled"
  30. mesontools.configure(options)
  31. def build():
  32. mesontools.build()
  33. def install():
  34. mesontools.install()
  35. if get.buildTYPE() == "emul32":
  36. pisitools.removeDir("/usr/bin32")
  37. return
  38. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README*")