actions.py 955 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. options = "\-DCMAKE_BUILD_TYPE=Release \
  12. -DFREEGLUT_BUILD_DEMOS=OFF \
  13. "
  14. if get.buildTYPE() == "emul32":
  15. shelltools.export("CFLAGS", "-m32")
  16. shelltools.export("CXXFLAGS", "-m32")
  17. options += "-DCMAKE_INSTALL_LIBDIR=lib32 -DFREEGLUT_BUILD_DEMOS=OFF \
  18. "
  19. elif get.ARCH() == "x86_64":
  20. options += "-DCMAKE_INSTALL_LIBDIR=lib \
  21. "
  22. cmaketools.configure(options)
  23. def build():
  24. cmaketools.make()
  25. def install():
  26. cmaketools.install()
  27. pisitools.dodoc("AUTHORS", "ChangeLog", "README")
  28. pisitools.dohtml("doc/*")