actions.py 947 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. J = ''.join([
  11. ' --prefix=/usr',
  12. ' --disable-rpath',
  13. ' --disable-gtk4',
  14. ' --disable-silent-rules',
  15. ' --disable-update-checks',
  16. ' --enable-x265',
  17. ' --enable-qsv',
  18. ' --enable-numa',
  19. ' --enable-fdk-aac '
  20. ])
  21. def setup():
  22. shelltools.export("CXXFLAGS", get.CXXFLAGS())
  23. shelltools.export("CFLAGS", get.CFLAGS())
  24. shelltools.cd("gtk")
  25. autotools.autoreconf("-fiv")
  26. shelltools.cd("..")
  27. autotools.rawConfigure("--force %s" % J)
  28. def build():
  29. autotools.make("-C build")
  30. def install():
  31. autotools.rawInstall("-C build DESTDIR=%s" % get.installDIR())
  32. pisitools.dodoc("*.markdown", "COPYING", "LICENSE")