Modified: trunk/dports/python/py-matplotlib/Portfile (144223 => 144224)
--- trunk/dports/python/py-matplotlib/Portfile 2016-01-05 00:49:16 UTC (rev 144223)
+++ trunk/dports/python/py-matplotlib/Portfile 2016-01-05 00:49:18 UTC (rev 144224)
@@ -6,6 +6,7 @@
PortGroup github 1.0
github.setup matplotlib matplotlib 1.5.0 v
+revision 1
name py-matplotlib
categories-append graphics math
@@ -50,7 +51,8 @@
port:py${python.version}-cycler
patchfiles-append patch-setup.cfg.diff \
- patch-setupext.py.diff
+ patch-setupext.py.diff \
+ patch-src-macosx.m.diff
build.env PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig"
Added: trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff (0 => 144224)
--- trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff (rev 0)
+++ trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff 2016-01-05 00:49:18 UTC (rev 144224)
@@ -0,0 +1,11 @@
+--- src/_macosx.m.orig 2015-11-29 10:44:55.000000000 -0700
++++ src/_macosx.m 2015-11-29 11:02:16.000000000 -0700
+@@ -1,5 +1,8 @@
+ #include <Cocoa/Cocoa.h>
+ #include <ApplicationServices/ApplicationServices.h>
++#ifndef kCTForegroundColorFromContextAttributeName
++extern const CFStringRef kCTForegroundColorFromContextAttributeName AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
++#endif
+ #include <sys/socket.h>
+ #include <Python.h>
+ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION