actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import cmaketools
  9. def setup():
  10. options_cfg = ''.join([
  11. '-DUSE_TBB=ON ',
  12. '-DUSE_VTK=OFF ',
  13. '-DUSE_GL2PS=ON ',
  14. '-DUSE_FFMPEG=ON ',
  15. '-DUSE_FREEIMAGE=OFF ',
  16. '-DINSTALL_DIR_LIB=/usr/lib ',
  17. '-DCMAKE_BUILD_TYPE=Release ',
  18. '-DCMAKE_INSTALL_PREFIX=/usr ',
  19. ])
  20. shelltools.makedirs("build")
  21. shelltools.cd("build")
  22. cmaketools.configure("%s" % options_cfg, sourceDir="..")
  23. def build():
  24. shelltools.cd("build")
  25. cmaketools.make()
  26. def install():
  27. shelltools.cd("build")
  28. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. shelltools.cd("..")
  30. pisitools.dodoc("LICENSE*", "OCCT_LGPL*")