freebsd-ports/x11-toolkits/py-wxPython30/files/patch-config.py
John Marino f008e368c9 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
2015-04-11 20:30:18 +00:00

10 lines
306 B
Python

--- 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')