diff --git a/dev-python/imaging/patches/python_imaging-1.1.7.patchset b/dev-python/imaging/patches/python_imaging-1.1.7.patchset new file mode 100644 index 000000000..1524c1eb5 --- /dev/null +++ b/dev-python/imaging/patches/python_imaging-1.1.7.patchset @@ -0,0 +1,35 @@ +From c51fc3e85f60cf905b8620c751fd97fcc4e185c4 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 29 Nov 2015 10:17:56 +0100 +Subject: Fix libraries search paths. + + +diff --git a/setup.py b/setup.py +index 5d4d53a..844e386 100644 +--- a/setup.py ++++ b/setup.py +@@ -15,7 +15,7 @@ except OSError: + + def libinclude(root): + # map root to (root/lib, root/include) +- return os.path.join(root, "lib"), os.path.join(root, "include") ++ return os.path.join(root, "develop/lib"), os.path.join(root, "develop/headers") + + # -------------------------------------------------------------------- + # Library pointers. +@@ -34,9 +34,9 @@ def libinclude(root): + # TIFF_ROOT = libinclude("/opt/tiff") + + TCL_ROOT = None +-JPEG_ROOT = None +-ZLIB_ROOT = None +-TIFF_ROOT = None ++JPEG_ROOT = libinclude("/system") ++ZLIB_ROOT = libinclude("/system") ++TIFF_ROOT = libinclude("/system") + FREETYPE_ROOT = None + LCMS_ROOT = None + +-- +2.2.2 + diff --git a/dev-python/imaging/python_imaging-1.1.7.recipe b/dev-python/imaging/python_imaging-1.1.7.recipe index 399a45f9b..c57f7f7e2 100644 --- a/dev-python/imaging/python_imaging-1.1.7.recipe +++ b/dev-python/imaging/python_imaging-1.1.7.recipe @@ -8,12 +8,13 @@ COPYRIGHT=" 1995-2011 by Fredrik Lundh " ARCHITECTURES="x86_gcc2" -REVISION="1" +REVISION="2" HOMEPAGE="http://www.pythonware.com/products/pil/" SOURCE_URI="http://effbot.org/downloads/Imaging-1.1.7.tar.gz" CHECKSUM_SHA256="895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211" SOURCE_DIR="Imaging-1.1.7" +PATCHES="python_imaging-$portVersion.patchset" PROVIDES=" python_imaging$secondaryArchSuffix = $portVersion @@ -24,6 +25,11 @@ PROVIDES=" cmd:pilprint.py " +REQUIRES=" + lib:libjpeg + lib:libz +" + BUILD_REQUIRES=" devel:libjpeg devel:libz