* 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.)
This commit is contained in:
ryoon 2012-11-30 12:32:50 +00:00
parent 41019ba0a3
commit 11f397ed70
2 changed files with 22 additions and 2 deletions

View file

@ -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

19
x11/py-gtk2/options.mk Normal file
View file

@ -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