actions.py 958 B

1234567891011121314151617181920212223242526272829303132333435
  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 get
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. options = "--disable-static"
  12. if get.buildTYPE() == "emul32":
  13. options += " --libdir=/usr/lib32"
  14. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  15. pisitools.dosed("Makefile.in","check: scripts/symbols.chk","check:")
  16. autotools.configure(options)
  17. def build():
  18. autotools.make()
  19. def check():
  20. autotools.make("check")
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. if get.buildTYPE() == "emul32":
  24. return
  25. # remove la symlink, it is not detected correctly
  26. pisitools.remove("/usr/lib/libpng.la")
  27. pisitools.dodoc("ANNOUNCE", "CHANGES", "README", "TODO")