actions.py 1.2 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/licenses/gpl.txt
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import get
  10. from pisi.actionsapi import shelltools
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DUSE_QT=0 \
  15. -DUSE_PYTHON=ON \
  16. -DPYTHON_VERSION=3.11 \
  17. -DCMAKE_INSTALL_PREFIX=/usr \
  18. -DCMAKE_INSTALL_LIBDIR=lib \
  19. -DPYLIB_INSTALL_DIR=lib/python3.11/site-packages \
  20. -DUSE_OCIO= OFF \
  21. -DOpenGL_GL_PREFERENCE=GLVND \
  22. -DUSE_OPENSSL:BOOL=TRUE \
  23. -DSTOP_ON_WARNING:BOOL=FALSE \
  24. -DOIIO_BUILD_TESTS=OFF", sourceDir="..")
  25. def build():
  26. shelltools.cd("build")
  27. cmaketools.make()
  28. def install():
  29. shelltools.cd("build")
  30. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. #pisitools.dodoc("CREDITS", "LICENSE", "README.*")