actions.py 844 B

1234567891011121314151617181920212223242526272829303132
  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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. j = "-DCMAKE_BUILD_TYPE=Release \
  10. -DCMAKE_INSTALL_DIR=/usr \
  11. -DCMAKE_INSTALL_LIBDIR=lib \
  12. -DENABLE_THUMBNAILER=ON \
  13. -DENABLE_GIO=ON \
  14. -DENABLE_TESTS=OFF \
  15. "
  16. def setup():
  17. # pisitools.dosed("libffmpegthumbnailer/pngwriter.cpp", "#include <cassert>", "#include <cassert>\n#include <cstring>")
  18. pisitools.cxxflags.add("-Wno-deprecated-declarations")
  19. cmaketools.configure(j)
  20. def build():
  21. cmaketools.make()
  22. def install():
  23. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README.md")