You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.9 KiB

  1. diff -rupN Imaging-1.1.7.orig/setup.py Imaging-1.1.7/setup.py
  2. --- Imaging-1.1.7.orig/setup.py 2009-11-15 17:06:10.000000000 +0100
  3. +++ Imaging-1.1.7/setup.py 2014-12-11 01:01:10.857100877 +0100
  4. @@ -34,10 +34,10 @@ def libinclude(root):
  5. # TIFF_ROOT = libinclude("/opt/tiff")
  6. TCL_ROOT = None
  7. -JPEG_ROOT = None
  8. -ZLIB_ROOT = None
  9. +JPEG_ROOT = os.environ['STAGING_DIR'] + "/usr/lib", os.environ['STAGING_DIR'] + "/usr/include"
  10. +ZLIB_ROOT = os.environ['STAGING_DIR'] + "/usr/lib", os.environ['STAGING_DIR'] + "/usr/include"
  11. TIFF_ROOT = None
  12. -FREETYPE_ROOT = None
  13. +FREETYPE_ROOT = os.environ['STAGING_DIR'] + "/usr/lib", os.environ['STAGING_DIR'] + "/usr/include"
  14. LCMS_ROOT = None
  15. # FIXME: add mechanism to explicitly *disable* the use of a library
  16. @@ -147,7 +147,6 @@ class pil_build_ext(build_ext):
  17. add_directory(library_dirs, "/opt/local/lib")
  18. add_directory(include_dirs, "/opt/local/include")
  19. - add_directory(library_dirs, "/usr/local/lib")
  20. # FIXME: check /opt/stuff directories here?
  21. prefix = sysconfig.get_config_var("prefix")
  22. @@ -199,22 +198,6 @@ class pil_build_ext(build_ext):
  23. add_directory(include_dirs, include_root)
  24. #
  25. - # add standard directories
  26. -
  27. - # look for tcl specific subdirectory (e.g debian)
  28. - if _tkinter:
  29. - tcl_dir = "/usr/include/tcl" + TCL_VERSION
  30. - if os.path.isfile(os.path.join(tcl_dir, "tk.h")):
  31. - add_directory(include_dirs, tcl_dir)
  32. -
  33. - # standard locations
  34. - add_directory(library_dirs, "/usr/local/lib")
  35. - add_directory(include_dirs, "/usr/local/include")
  36. -
  37. - add_directory(library_dirs, "/usr/lib")
  38. - add_directory(include_dirs, "/usr/include")
  39. -
  40. - #
  41. # insert new dirs *before* default libs, to avoid conflicts
  42. # between Python PYD stub libs and real libraries