actions.py 978 B

12345678910111213141516171819202122232425262728293031323334
  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 = "--with-pic \
  12. --enable-ogg \
  13. --enable-sse \
  14. --disable-doxygen-docs \
  15. --disable-dependency-tracking \
  16. --disable-xmms-plugin \
  17. --disable-static"
  18. pisitools.cflags.add("-Wno-stringop-overflow -Wno-stringop-truncation")
  19. autotools.autoconf()
  20. autotools.configure(options)
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. #def check():
  25. #autotools.make("check")
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. pisitools.dodoc("COPYING*", "README*")