actions.py 915 B

123456789101112131415161718192021222324252627282930313233
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import cmaketools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())
  13. shelltools.export("CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
  14. #autotools.autoreconf("-vfi")
  15. #autotools.configure()
  16. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  17. -DCMAKE_INSTALL_LIBDIR=/usr/lib \
  18. -DBUILD_SHARED_LIBS=ON")
  19. def build():
  20. cmaketools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. # No static libs
  24. #pisitools.remove("/usr/lib/*.a")
  25. pisitools.dodoc("LICENSE.*")