actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) 2018 Suleyman POYRAZ (Zaryob)
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import libtools
  10. from inary.actionsapi import get
  11. from inary.actionsapi import shelltools
  12. def setup():
  13. autotools.autoreconf("-vfi")
  14. options = "--enable-shared \
  15. --disable-static \
  16. --enable-maxmem=64 \
  17. --disable-dependency-tracking"
  18. if get.buildTYPE() == "emul32":
  19. options += " --prefix=/emul32 --libdir=/usr/lib32"
  20. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  21. autotools.configure(options)
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  26. if get.buildTYPE() == "emul32":
  27. return
  28. # they say some programs use this
  29. inarytools.insinto("/usr/include", "jpegint.h")
  30. inarytools.insinto("/usr/include", "jinclude.h")
  31. inarytools.dodoc("change.log", "example.c", "README","*.txt")