actions.py 805 B

12345678910111213141516171819202122232425262728
  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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. cmaketools.configure("-DAVIF_BUILD_APPS=ON \
  11. -DAVIF_CODEC_AOM=ON \
  12. -DAVIF_CODEC_DAV1D=ON \
  13. -DAVIF_CODEC_SVT=ON \
  14. -DAVIF_CODEC_RAV1E=ON \
  15. -DAVIF_BUILD_GDK_PIXBUF=ON")
  16. def build():
  17. cmaketools.make()
  18. def install():
  19. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.dosym("libavif.so.16.0.2", "/usr/lib/libavif.so.13")
  21. pisitools.dodoc("LICENSE", "README*")