actions.py 1.1 KB

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 cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. from pisi.actionsapi import autotools
  11. def setup():
  12. shelltools.system("mkdir build_")
  13. shelltools.cd("build_")
  14. shelltools.system("cmake .. \
  15. -DCMAKE_INSTALL_PREFIX=/usr \
  16. -DCMAKE_BUILD_TYPE=Release \
  17. -DCMAKE_INSTALL_LIBDIR=lib \
  18. -DBUILD_EXAMPLES='OFF' \
  19. -DBUILD_SHARED_LIBS='ON' \
  20. -DWITH_AVFFT='OFF' \
  21. -DWITH_LSR_BINDINGS='ON' \
  22. -DWITH_PFFFT='ON' \
  23. -DWITH_OPENMP='ON'")
  24. def build():
  25. shelltools.cd("build_")
  26. cmaketools.make()
  27. def install():
  28. shelltools.cd("build_")
  29. autotools.rawInstall("DESTDIR=%s" %get.installDIR())
  30. shelltools.cd("..")
  31. pisitools.dodoc("AUTHORS", "COPYING.LGPL", "LICENCE", "NEWS", "README")