summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorrecht <recht>2004-01-10 20:56:32 +0000
committerrecht <recht>2004-01-10 20:56:32 +0000
commit390a0591ad2dacad1a676a2e4663da52f7b221ac (patch)
tree00690175ed837ab4485c75a5f64927a1ce112da5 /x11
parent287abb8a4239a24017f2c72f23da678a1acc3baf (diff)
downloadpkgsrc-390a0591ad2dacad1a676a2e4663da52f7b221ac.tar.gz
fix build with the GTK+2 version of wxGTK
Diffstat (limited to 'x11')
-rw-r--r--x11/py-wxWindows/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/x11/py-wxWindows/Makefile b/x11/py-wxWindows/Makefile
index 54c06e24478..93c1b898561 100644
--- a/x11/py-wxWindows/Makefile
+++ b/x11/py-wxWindows/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2004/01/10 14:25:42 recht Exp $
+# $NetBSD: Makefile,v 1.24 2004/01/10 20:56:32 recht Exp $
#
DISTNAME= wxPythonSrc-2.4.2.4
@@ -21,12 +21,18 @@ BUILDLINK_DEPENDS.python21-pth= python21-pth>=2.1.3nb3
BUILDLINK_DEPENDS.python22-pth= python22-pth>=2.2.2nb2
BUILDLINK_DEPENDS.wxGTK= wxGTK>=2.4.1nb1
+.include "../../mk/bsd.prefs.mk"
+
+.if empty(WXGTK_USE_GTK1:M[Yy][Ee][Ss])
+WXARG= WXPORT=gtk2
+.endif
+
PYDISTUTILSPKG= yes
# no GL to limit dependencies
# OGL doesn't build with egcs-1.1.2
# no scripts to avoid conflicts
-PYSETUPBUILDARGS= BUILD_GLCANVAS=0 BUILD_OGL=0 NO_SCRIPTS=1
-PYSETUPINSTALLARGS= BUILD_GLCANVAS=0 BUILD_OGL=0 NO_SCRIPTS=1
+PYSETUPBUILDARGS= BUILD_GLCANVAS=0 BUILD_OGL=0 NO_SCRIPTS=1 ${WXARG}
+PYSETUPINSTALLARGS= BUILD_GLCANVAS=0 BUILD_OGL=0 NO_SCRIPTS=1 ${WXARG}
PYBINMODULE= yes
.include "../../x11/wxGTK/buildlink2.mk"