actions.py 826 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env 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 cmaketools
  10. from pisi.actionsapi import get
  11. def setup():
  12. cmaketools.configure("-B build \
  13. -DCMAKE_INSTALL_PREFIX=/usr \
  14. -DWITH_DAV1D=ON \
  15. -DWITH_RAV1E=ON \
  16. -DWITH_SvtEnc=ON")
  17. def build():
  18. shelltools.cd("build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("build")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. shelltools.cd("..")
  24. pisitools.dodoc("COPYING", "README*")