actions.py 767 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 https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. i = "-Wno-unused-function \
  11. -Wno-unused-parameter \
  12. -Wno-unused-result \
  13. -Wno-cast-function-type \
  14. "
  15. def setup():
  16. pisitools.cflags.add(i)
  17. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  18. autotools.configure("--disable-static")
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. # pisitools.dodoc("AUTHORS")