actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/copyleft/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. libdir = "lib"
  11. def setup():
  12. shelltools.export("LC_ALL", "en_US.UTF-8")
  13. shelltools.export("CFLAGS", get.CFLAGS().replace("-ggdb3", ""))
  14. autotools.rawConfigure("--prefix=/usr \
  15. --libdir=/usr/%s \
  16. --enable-pic \
  17. --enable-vp8 \
  18. --enable-vp9 \
  19. --enable-vp9-highbitdepth \
  20. --enable-shared \
  21. --enable-runtime-cpu-detect \
  22. --enable-multithread \
  23. --enable-postproc \
  24. --enable-experimental \
  25. --enable-spatial-svc \
  26. --disable-debug \
  27. --disable-debug-libs \
  28. --disable-install-docs \
  29. --disable-install-srcs" % libdir)
  30. def build():
  31. autotools.make("verbose=true")
  32. def install():
  33. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  34. pisitools.remove("/usr/%s/*.a" % libdir)
  35. pisitools.dodoc("AUTHORS", "CHANGELOG", "LICENSE", "PATENTS")