actions.py 804 B

12345678910111213141516171819202122232425262728
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from inary.actionsapi import autotools
  6. from inary.actionsapi import inarytools
  7. from inary.actionsapi import shelltools
  8. from inary.actionsapi import get
  9. if get.buildTYPE() == "emul32":
  10. shelltools.export("CC","gcc -m32")
  11. shelltools.export("CXX","g++ -m32")
  12. shelltools.export("LDFLAGS","-m32")
  13. shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
  14. def setup():
  15. autotools.autoreconf("-vif")
  16. autotools.configure("--disable-static \
  17. --enable-ipv6 \
  18. --without-fop")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())