actions.py 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def setup():
  10. options = "--prefix=/usr \
  11. --sysconfdir=/etc \
  12. --disable-static"
  13. if get.buildTYPE() == "emul32":
  14. # ogg only affects the executables so it's safe to disable for emul32
  15. options += " --libdir=/usr/lib32"
  16. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  17. autotools.autoreconf("-vi")
  18. autotools.configure(options)
  19. def build():
  20. autotools.make()
  21. def check():
  22. autotools.make("check")
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README*")