actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
  14. -DPODOFO_BUILD_SHARED=1 \
  15. -DPODOFO_BUILD_STATIC=0 \
  16. -DPODOFO_HAVE_JPEG_LIB=1 \
  17. -DPODOFO_HAVE_PNG_LIB=1 \
  18. -DPODOFO_HAVE_TIFF_LIB=1 \
  19. -DWANT_FONTCONFIG=1 \
  20. -DWANT_BOOST=1", sourceDir="..")
  21. #-DUSE_STLPORT=1"
  22. def build():
  23. shelltools.cd("build")
  24. cmaketools.make()
  25. def install():
  26. shelltools.cd("build")
  27. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. shelltools.cd("..")
  29. pisitools.dodoc("AUTHORS", "COPYING", "COPYING.LIB", "ChangeLog", "NEWS", "TODO")
  30. pisitools.dohtml("README.html", "FAQ.html")