actions.py 987 B

12345678910111213141516171819202122232425262728293031
  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 get
  10. def setup():
  11. if get.buildTYPE() == "emul32":
  12. pisitools.dosed("configure.ac", "(.*OC_X86_64_ASM.*)", r"#\1")
  13. shelltools.system("./autogen.sh")
  14. autotools.configure("--enable-shared \
  15. --enable-encode \
  16. --disable-dependency-tracking \
  17. --disable-spec \
  18. --disable-sdltest \
  19. --disable-examples \
  20. --disable-static")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall('DESTDIR="%s" docdir=/%s/libtheora' % (get.installDIR(), get.docDIR()))
  25. pisitools.dodoc("README", "AUTHORS", "CHANGES")