actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 libtools
  10. from pisi.actionsapi import get
  11. WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-"))
  12. def setup():
  13. shelltools.sym(".", "m4")
  14. shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())
  15. autotools.autoreconf("-vfi -Im4")
  16. libtools.gnuconfig_update()
  17. options = "--disable-esd \
  18. --disable-af \
  19. --disable-alsa \
  20. --enable-oss \
  21. --disable-static"
  22. if get.buildTYPE() == "emul32":
  23. options += " --bindir=/emul32/bin"
  24. shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS())
  25. shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
  26. shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
  27. autotools.configure(options)
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. pisitools.dodoc("AUTHORS", "NEWS", "README", "TODO")
  33. pisitools.dohtml("docs/*.html")