actions.py 963 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
  12. autotools.autoreconf("-vfi")
  13. autotools.configure("--disable-static \
  14. --disable-rpath \
  15. --without-x \
  16. --enable-cxx \
  17. --with-pic")
  18. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. if get.buildTYPE() == "emul32": return
  24. inarytools.rename("/%s/tiff-%s" % (get.docDIR(), get.srcVERSION()), get.srcNAME())