aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-04-12 04:30:18 +0800
committermarino <marino@FreeBSD.org>2015-04-12 04:30:18 +0800
commit88392de46e5d6982cd157c99cd39fb5a8bbbcbfc (patch)
treea5a09b5ed0ae208bd0fe151b93ea94694442320b /x11-toolkits
parentb1813b3ba038f09b4284d0df247e33af6f1f0480 (diff)
downloadfreebsd-ports-gnome-88392de46e5d6982cd157c99cd39fb5a8bbbcbfc.tar.gz
freebsd-ports-gnome-88392de46e5d6982cd157c99cd39fb5a8bbbcbfc.tar.zst
freebsd-ports-gnome-88392de46e5d6982cd157c99cd39fb5a8bbbcbfc.zip
x11-toolkits/py-wxPython30: Unbreak on F8 and F9
This port must be built under c++11 standard like the rest of the wx-dependent ports. I couldn't find a way to pass the flag so I had to patch the python script directly. Also, the USES=compiler setting was missing, which is required to actually pull in a c++11 capable compiler on the older FreeBSD releases. This port was blocking ~29 other ports from building on releases that it wouldn't build on. Approved by: blanket
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/py-wxPython30/Makefile4
-rw-r--r--x11-toolkits/py-wxPython30/files/patch-config.py10
2 files changed, 12 insertions, 2 deletions
diff --git a/x11-toolkits/py-wxPython30/Makefile b/x11-toolkits/py-wxPython30/Makefile
index 42b62f9e9fac..1f20f540f4df 100644
--- a/x11-toolkits/py-wxPython30/Makefile
+++ b/x11-toolkits/py-wxPython30/Makefile
@@ -2,7 +2,7 @@
PORTNAME= wxPython
PORTVERSION= 3.0.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits python
MASTER_SITES= SF/wxpython/wxPython/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +16,7 @@ DIST_SUBDIR= python
WRKSRC= ${WRKDIR}/${DISTNAME}/wxPython
-USES= python tar:bzip2
+USES= compiler:c++11-lib python tar:bzip2
.if defined(WITH_WXVERSION_ONLY)
diff --git a/x11-toolkits/py-wxPython30/files/patch-config.py b/x11-toolkits/py-wxPython30/files/patch-config.py
new file mode 100644
index 000000000000..cbda2b15ed27
--- /dev/null
+++ b/x11-toolkits/py-wxPython30/files/patch-config.py
@@ -0,0 +1,10 @@
+--- config.py.orig 2015-04-11 19:08:36 UTC
++++ config.py
+@@ -1030,6 +1030,7 @@ elif os.name == 'posix' or COMPILER == '
+
+ cflags = getWxConfigValue('--cxxflags')
+ cflags = cflags.split()
++ cflags.append('-std=c++11')
+ if debug:
+ cflags.append('-ggdb')
+ cflags.append('-O0')