actions.py 1.3 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 mesontools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # shelltools.system("sed -i 's/120/600/' test/meson.build")
  12. options = " --buildtype=release -Dloongson-mmi=disabled \
  13. --prefix=/usr \
  14. --libdir=lib \
  15. -Dvmx=disabled \
  16. -Darm-simd=disabled \
  17. -Dneon=disabled \
  18. -Drvv=disabled \
  19. -Dmips-dspr2=disabled \
  20. -Dgtk=disabled"
  21. if get.buildTYPE() == "_emul32":
  22. shelltools.export("CC", "%s -m32" % get.CC())
  23. shelltools.export("CXX", "%s -m32" % get.CXX())
  24. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  25. options += " -Ddemos=disabled --libdir=lib32 \
  26. "
  27. mesontools.configure(options)
  28. def build():
  29. mesontools.build()
  30. # def check():
  31. # mesontools.build("test")
  32. def install():
  33. mesontools.install()
  34. if get.buildTYPE() == "_emul32":
  35. return
  36. pisitools.dodoc("AUTHORS", "COPYING", "README")