aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2009-05-13 17:59:41 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2009-05-13 17:59:41 +0000
commitd145d1a02db8b45c1fe36f3fbe5debc7053c6d63 (patch)
tree39733b2be3d997b2d2534d35fc628a8fb989b721 /x11-toolkits
parentf4f49ff0b2ecbcd81a3071c75f802b47e174ffc6 (diff)
downloadports-d145d1a02db8b45c1fe36f3fbe5debc7053c6d63.tar.gz
ports-d145d1a02db8b45c1fe36f3fbe5debc7053c6d63.zip
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/py-wxPython24/Makefile9
-rw-r--r--x11-toolkits/py-wxPython24/files/patch-src-gtk_gdi.cpp20
-rw-r--r--x11-toolkits/py-wxPython24/files/patch-src_helpers.cpp20
3 files changed, 44 insertions, 5 deletions
diff --git a/x11-toolkits/py-wxPython24/Makefile b/x11-toolkits/py-wxPython24/Makefile
index 16eddf63a955..99156af34701 100644
--- a/x11-toolkits/py-wxPython24/Makefile
+++ b/x11-toolkits/py-wxPython24/Makefile
@@ -30,10 +30,13 @@ PYDISTUTILS_NOEGGINFO= yes
USE_WX= 2.4
DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
+post-extract:
+ @${RM} ${WRKSRC}/demo/dllwidget/test_dll.so
+
post-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
.if !defined(DEBUG_FLAGS)
- @${FIND} ${WRKSRC} -name "*.so" | ${XARGS} strip
+ @${FIND} ${WRKSRC} -name "*.so" | ${XARGS} ${STRIP_CMD}
.endif
post-install:
@@ -50,10 +53,6 @@ post-install:
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
-BROKEN= Does not build on 64-bit architectures
-.endif
-
CONFIGURE_ARGS+= --enable-gtk2
PYDISTUTILS_BUILDARGS+= WXPORT=gtk2
PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS} ${PYDISTUTILS_BUILDARGS}
diff --git a/x11-toolkits/py-wxPython24/files/patch-src-gtk_gdi.cpp b/x11-toolkits/py-wxPython24/files/patch-src-gtk_gdi.cpp
new file mode 100644
index 000000000000..8e36a0fc82a8
--- /dev/null
+++ b/x11-toolkits/py-wxPython24/files/patch-src-gtk_gdi.cpp
@@ -0,0 +1,20 @@
+--- src/gtk/gdi.cpp.orig 2003-09-23 01:06:27.000000000 +0200
++++ src/gtk/gdi.cpp 2009-05-13 17:59:41.000000000 +0200
+@@ -137,7 +137,7 @@
+
+ wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) {
+ char* buf;
+- int length;
++ Py_ssize_t length;
+ PyString_AsStringAndSize(bits, &buf, &length);
+ return new wxBitmap(buf, width, height, depth);
+ }
+@@ -193,7 +193,7 @@
+ PyObject* maskBits=0) {
+ char* bitsbuf;
+ char* maskbuf = NULL;
+- int length;
++ Py_ssize_t length;
+ PyString_AsStringAndSize(bits, &bitsbuf, &length);
+ if (maskBits)
+ PyString_AsStringAndSize(maskBits, &maskbuf, &length);
diff --git a/x11-toolkits/py-wxPython24/files/patch-src_helpers.cpp b/x11-toolkits/py-wxPython24/files/patch-src_helpers.cpp
new file mode 100644
index 000000000000..c93b50ce05d4
--- /dev/null
+++ b/x11-toolkits/py-wxPython24/files/patch-src_helpers.cpp
@@ -0,0 +1,20 @@
+--- src/helpers.cpp.orig 2009-05-13 16:55:33.000000000 +0200
++++ src/helpers.cpp 2009-05-13 16:57:42.000000000 +0200
+@@ -1656,7 +1656,7 @@
+ target = new wxString(tmpPtr, *wxConvCurrent, tmpSize);
+ }
+ #else
+- char* tmpPtr; int tmpSize;
++ char* tmpPtr; Py_ssize_t tmpSize;
+ if (PyString_AsStringAndSize(source, &tmpPtr, &tmpSize) == -1) {
+ PyErr_SetString(PyExc_TypeError, "Unable to convert string");
+ return NULL;
+@@ -1702,7 +1702,7 @@
+ target = wxString(tmpPtr, *wxConvCurrent, tmpSize);
+ }
+ #else
+- char* tmpPtr; int tmpSize;
++ char* tmpPtr; Py_ssize_t tmpSize;
+ PyString_AsStringAndSize(source, &tmpPtr, &tmpSize);
+ target = wxString(tmpPtr, tmpSize);
+ #endif // wxUSE_UNICODE