actions.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. pisitools.cflags.add(" -ffat-lto-objects")
  15. pisitools.cxxflags.add(" -ffat-lto-objects")
  16. autotools.rawConfigure("--prefix=/usr \
  17. --libdir=/usr/%s \
  18. --enable-pic \
  19. --enable-vp8 \
  20. --enable-vp9 \
  21. --enable-vp9-highbitdepth \
  22. --enable-vp9-temporal-denoising \
  23. --enable-shared \
  24. --enable-runtime-cpu-detect \
  25. --enable-postproc \
  26. --enable-experimental \
  27. --disable-install-docs \
  28. --disable-install-srcs" % libdir)
  29. def build():
  30. autotools.make("verbose=true")
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. pisitools.remove("/usr/%s/*.a" % libdir)
  34. pisitools.dosym("/usr/lib/libvpx.so.9.0.1", "/usr/lib/libvpx.so.8")
  35. pisitools.dodoc("AUTHORS", "CHANGELOG", "LICENSE", "PATENTS")