84126e0d3f
Based on a diff for 2.8.11.0 by rpointel@ Tested in a bulk build by landry@ OK rpointel@, landry@, alek@ (maintainer)
58 lines
2.6 KiB
Plaintext
58 lines
2.6 KiB
Plaintext
$OpenBSD: patch-wxPython_config_py,v 1.3 2011/05/22 08:21:34 dcoppa Exp $
|
|
--- wxPython/config.py.orig Wed Oct 3 11:20:46 2007
|
|
+++ wxPython/config.py Wed Oct 3 11:21:52 2007
|
|
@@ -132,7 +132,7 @@ UNDEF_NDEBUG = 1 # Python 2.2 on Unix/Linux by defau
|
|
NO_SCRIPTS = 0 # Don't install the tool scripts
|
|
NO_HEADERS = 0 # Don't install the wxPython *.h and *.i files
|
|
|
|
-INSTALL_MULTIVERSION = 1 # Install the packages such that multiple versions
|
|
+INSTALL_MULTIVERSION = 0 # Install the packages such that multiple versions
|
|
# can co-exist. When turned on the wx and wxPython
|
|
# pacakges will be installed in a versioned subdir
|
|
# of site-packages, and a *.pth file will be
|
|
@@ -145,7 +145,7 @@ INSTALL_MULTIVERSION = 1 # Install the packages such t
|
|
FLAVOUR = "" # Optional flavour string to be appended to VERSION
|
|
# in MULTIVERSION installs
|
|
|
|
-EP_ADD_OPTS = 1 # When doing MULTIVERSION installs the wx port and
|
|
+EP_ADD_OPTS = 0 # When doing MULTIVERSION installs the wx port and
|
|
# ansi/unicode settings can optionally be added to the
|
|
# subdir path used in site-packages
|
|
|
|
@@ -520,7 +520,7 @@ class wx_install_headers(distutils.command.install_hea
|
|
if not headers:
|
|
return
|
|
|
|
- root = self.root
|
|
+ root = '${WRKINST}'
|
|
#print "WXPREFIX is %s, root is %s" % (WXPREFIX, root)
|
|
# hack for universal builds, which append i386/ppc
|
|
# to the root
|
|
@@ -529,7 +529,7 @@ class wx_install_headers(distutils.command.install_hea
|
|
for header, location in headers:
|
|
install_dir = os.path.normpath(root +
|
|
WXPREFIX +
|
|
- '/include/wx-%d.%d/wx' % (VER_MAJOR, VER_MINOR) +
|
|
+ '/include/wx' +
|
|
location)
|
|
self.mkpath(install_dir)
|
|
(out, _) = self.copy_file(header, install_dir)
|
|
@@ -594,7 +594,7 @@ def find_data_files(srcdir, *wildcards, **kw):
|
|
|
|
def makeLibName(name):
|
|
if os.name == 'posix' or COMPILER == 'mingw32':
|
|
- libname = '%s_%s-%s' % (WXBASENAME, name, WXRELEASE)
|
|
+ libname = '%s_%s' % (WXBASENAME, name)
|
|
elif name:
|
|
libname = 'wxmsw%s%s_%s' % (WXDLLVER, libFlag(), name)
|
|
else:
|
|
@@ -1013,8 +1013,6 @@ elif os.name == 'posix' or COMPILER == 'mingw32':
|
|
if debug:
|
|
cflags.append('-g')
|
|
cflags.append('-O0')
|
|
- else:
|
|
- cflags.append('-O3')
|
|
|
|
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
|
|
MONOLITHIC = (lflags.find("_xrc") == -1)
|