diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-11-30 12:32:50 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-11-30 12:32:50 +0000 |
commit | 11f397ed70140a96d801ee0ca95bd762bb687916 (patch) | |
tree | 1e8488d51640b716879b1235f9793140ee8cf062 /x11 | |
parent | 41019ba0a383a758dc002293158a8c06a5569638 (diff) | |
download | pkgsrc-11f397ed70140a96d801ee0ca95bd762bb687916.tar.gz |
* Dependency to py-numpy is optional now.
* Enable py-numpy option on g95 support platforms. (This change enables
py-gtk2 package build on arm, for example.)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/py-gtk2/Makefile | 5 | ||||
-rw-r--r-- | x11/py-gtk2/options.mk | 19 |
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 |