actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import libtools
  10. from inary.actionsapi import get
  11. def setup():
  12. inarytools.dosed("configure.in", "-O")
  13. options = "\
  14. --enable-mmx \
  15. --disable-static"
  16. if get.buildTYPE() == "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. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. inarytools.dodoc("AUTHORS", "ChangeLog" , "README")
  29. inarytools.insinto("/%s/sdl-gfx/" % get.docDIR(), "Docs", "html")