actions.py 824 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. def setup():
  9. autotools.autoreconf("-fi")
  10. if not get.buildTYPE() == "emul32":
  11. autotools.configure("--with-jpeg8")
  12. else:
  13. pisitools.dosed("configure", "(NAFLAGS='-fel)f64( -DELF -D__x86_64__)", "\\1f32\\2")
  14. autotools.configure("--with-jpeg8 --without-simd")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. if get.buildTYPE() == "emul32": return
  20. # provide jpegint.h as it is required by various software
  21. pisitools.insinto("/usr/lib/include", "jpegint.h")