actions.py 892 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/copyleft/gpl.txt.
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import libtools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.cflags.add("-fPIC")
  12. pisitools.cxxflags.add("-fPIC")
  13. pisitools.ldflags.add("-fPIC")
  14. autotools.autoreconf("-if")
  15. #libtools.libtoolize("--force --copy --automake")
  16. autotools.configure("--disable-static \
  17. --enable-shared \
  18. --prefix=/usr \
  19. --enable-samples \
  20. --enable-ipv6 \
  21. ")
  22. def build():
  23. autotools.make("-j1")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("*txt")