summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/py-gtk2/Makefile5
-rw-r--r--x11/py-gtk2/options.mk19
2 files changed, 22 insertions, 2 deletions
diff --git a/x11/py-gtk2/Makefile b/x11/py-gtk2/Makefile
index e0a92017cd3..ef1c8da8e8e 100644
--- a/x11/py-gtk2/Makefile
+++ b/x11/py-gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.89 2012/10/29 05:06:44 asau Exp $
+# $NetBSD: Makefile,v 1.90 2012/11/30 12:32:50 ryoon Exp $
#
DISTNAME= pygtk-2.24.0
@@ -22,12 +22,13 @@ GNU_CONFIGURE= YES
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
USE_TOOLS+= gmake pkg-config
+.include "options.mk"
+
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../graphics/py-cairo/buildlink3.mk"
-.include "../../math/py-numpy/buildlink3.mk"
BUILDLINK_API_DEPENDS.pygobject+= ${PYPKGPREFIX}-gobject>=2.15.3
.include "../../devel/py-gobject/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.16.0
diff --git a/x11/py-gtk2/options.mk b/x11/py-gtk2/options.mk
new file mode 100644
index 00000000000..8471d86d481
--- /dev/null
+++ b/x11/py-gtk2/options.mk
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1 2012/11/30 12:32:50 ryoon Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.py-gtk2
+PKG_SUPPORTED_OPTIONS= py-numpy
+.if (!empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64) || \
+ !empty(MACHINE_ARCH:Mamd64) || \
+ !empty(MACHINE_ARCH:Mia64) || !empty(MACHINE_ARCH:Mpowerpc*) || \
+ !empty(MACHINE_ARCH:Mhppa) || !empty(MACHINE_ARCH:Msparc*) || \
+ !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mmips*))
+PKG_SUGGESTED_OPTIONS= py-numpy
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpy-numpy)
+.include "../../math/py-numpy/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-numpy
+.endif