actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. NoStrip=["/usr/lib"]
  12. def setup():
  13. shelltools.cd("build/linux")
  14. autotools.rawConfigure("--prefix=/usr \
  15. --extra-ldflags='-Wl,-z,noexecstack' \
  16. --chroma-format='all' \
  17. --enable-shared \
  18. --enable-lto \
  19. --enable-pic \
  20. --disable-swscale \
  21. --disable-lavf \
  22. --disable-ffms \
  23. --disable-gpac \
  24. ")
  25. def build():
  26. shelltools.cd("build/linux")
  27. autotools.make()
  28. def install():
  29. shelltools.cd("build/linux")
  30. autotools.rawInstall("DESTDIR=%s" %get.installDIR())
  31. pisitools.remove("/usr/lib/libxavs2.a")
  32. shelltools.cd("../..")
  33. pisitools.dodoc("COPYING", "README.md")