actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. options = "--disable-static \
  11. --disable-rpath \
  12. --disable-silent-rules \
  13. --disable-guile \
  14. --enable-heartbeat-support \
  15. --with-zlib \
  16. --without-tpm \
  17. --without-dane \
  18. --disable-valgrind-tests"
  19. if get.buildTYPE() == "emul32":
  20. options += " --disable-hardware-acceleration \
  21. --with-included-unistring \
  22. --enable-local-libopts \
  23. "
  24. autotools.configure(options)
  25. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  26. def build():
  27. autotools.make()
  28. #def check():
  29. #some tests fail in emul32
  30. #if not get.buildTYPE() == "emul32":
  31. #autotools.make("check")
  32. def install():
  33. autotools.rawInstall("DESTDIR=%s" % get.installDIR())