actions.py 1.1 KB

123456789101112131415161718192021222324252627282930
  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 pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. WorkDir="Imaging-%s" % get.srcVERSION()
  11. # fix unused direct dependency warning
  12. shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
  13. def install():
  14. # suppress compiler warnings
  15. pisitools.cflags.add("-Wno-incompatible-pointer-types -Wno-unused-but-set-variable -Wno-int-to-pointer-cast")
  16. #pisitools.dosed("_imagingft.c", "<freetype/freetype.h>", "<freetype2/freetype.h>")
  17. #pisitools.dosed("_imagingft.c", "<freetype/fterrors.h>", "<freetype2/fterrors.h>")
  18. pythonmodules.install()
  19. shelltools.cd("Sane")
  20. pythonmodules.install()
  21. shelltools.cd("..")
  22. for header in ["Imaging.h","ImPlatform.h"]:
  23. pisitools.insinto("/usr/include/%s" % get.curPYTHON(), "libImaging/%s" % header)
  24. pisitools.dodoc("README")