actions.py 1.1 KB

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/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "SDL_ttf-2.0.11"
  11. def setup():
  12. options = "--disable-dependency-tracking \
  13. --disable-static \
  14. --with-x"
  15. if get.buildTYPE() == "emul32":
  16. #options += " --prefix=/emul32 \
  17. options += " --includedir=/usr/include \
  18. --libdir=/usr/lib32"
  19. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  20. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  21. shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
  22. shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
  23. autotools.configure(options)
  24. def build():
  25. pisitools.dosed("Makefile", "-lz -lbz2", "")
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. pisitools.dodoc("CHANGES", "COPYING", "README")