diff options
Diffstat (limited to 'graphics/lcms-python/files')
-rw-r--r-- | graphics/lcms-python/files/patch-icc34 | 14 | ||||
-rw-r--r-- | graphics/lcms-python/files/patch-python_Makefile.in | 31 | ||||
-rw-r--r-- | graphics/lcms-python/files/patch-python_lcms_wrap.cxx | 11 |
3 files changed, 56 insertions, 0 deletions
diff --git a/graphics/lcms-python/files/patch-icc34 b/graphics/lcms-python/files/patch-icc34 new file mode 100644 index 000000000000..6d7a4aa9b2e5 --- /dev/null +++ b/graphics/lcms-python/files/patch-icc34 @@ -0,0 +1,14 @@ +Try to use the int32 and friends on all Unixes -- not just SGI's Irix. +--- include/icc34.h.in.orig Tue Jul 22 06:10:02 2003 ++++ include/icc34.h.in Sun May 23 11:45:09 2004 +@@ -191,8 +191,10 @@ + typedef icUInt32Number icU16Fixed16Number; + + #else ++#ifdef __unix__ + #ifdef __sgi + #include "sgidefs.h" ++#endif + + typedef __int32_t icSignature; + diff --git a/graphics/lcms-python/files/patch-python_Makefile.in b/graphics/lcms-python/files/patch-python_Makefile.in new file mode 100644 index 000000000000..d3588f5f7381 --- /dev/null +++ b/graphics/lcms-python/files/patch-python_Makefile.in @@ -0,0 +1,31 @@ +--- python/Makefile.in.orig 2009-10-13 14:53:14.000000000 +0400 ++++ python/Makefile.in 2009-10-13 14:54:04.000000000 +0400 +@@ -56,7 +56,6 @@ + am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(pkgdir)" + pkgLTLIBRARIES_INSTALL = $(INSTALL) + LTLIBRARIES = $(pkg_LTLIBRARIES) +-_lcms_la_DEPENDENCIES = $(top_builddir)/src/liblcms.la + am__lcms_la_OBJECTS = _lcms_la-lcms_wrap.lo + _lcms_la_OBJECTS = $(am__lcms_la_OBJECTS) + _lcms_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ +@@ -157,7 +156,7 @@ + PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ + PYTHON_PLATFORM = @PYTHON_PLATFORM@ + PYTHON_PREFIX = @PYTHON_PREFIX@ +-PYTHON_VERSION = @PYTHON_VERSION@ ++PYTH_VERSION = @PYTHON_VERSION@ + RANLIB = @RANLIB@ + SED = @SED@ + SET_MAKE = @SET_MAKE@ +@@ -243,9 +242,9 @@ + _lcms_la_LDFLAGS = -no-undefined -module -avoid-version \ + -L$(LCMS_PYLIB)/config + +-_lcms_la_LIBADD = $(top_builddir)/src/liblcms.la -lpython$(PYTHON_VERSION) ++_lcms_la_LIBADD = -llcms -lpython$(PYTH_VERSION) + _lcms_la_SOURCES = lcms_wrap.cxx +-_lcms_la_CPPFLAGS = -I$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION) \ ++_lcms_la_CPPFLAGS = -I$(PYTHON_PREFIX)/include/python$(PYTH_VERSION) \ + -I$(LCMS_PYINCLUDE) \ + $(AM_CPPFLAGS) + diff --git a/graphics/lcms-python/files/patch-python_lcms_wrap.cxx b/graphics/lcms-python/files/patch-python_lcms_wrap.cxx new file mode 100644 index 000000000000..d0c5465786fc --- /dev/null +++ b/graphics/lcms-python/files/patch-python_lcms_wrap.cxx @@ -0,0 +1,11 @@ +--- python/lcms_wrap.cxx.orig 2009-10-13 14:48:08.000000000 +0400 ++++ python/lcms_wrap.cxx 2009-10-13 14:48:48.000000000 +0400 +@@ -2958,7 +2958,7 @@ + { + if (PyString_Check(obj)) { + char *cstr; Py_ssize_t len; +- PyString_AsStringAndSize(obj, &cstr, &len); ++ PyString_AsStringAndSize(obj, &cstr, (Py_ssize_t *)&len); + if (cptr) { + if (alloc) { + /* |