From 24e156fcb73ab6ab291dde66ba18958c639a22ff Mon Sep 17 00:00:00 2001 From: ahoka Date: Sun, 18 Oct 2009 16:34:34 +0000 Subject: Add option for gtk2 support. (allows qt to draw native gtk2 widgets) --- x11/qt4-libs/options.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'x11/qt4-libs') diff --git a/x11/qt4-libs/options.mk b/x11/qt4-libs/options.mk index 8e9438cc01b..9654c7b3dfd 100644 --- a/x11/qt4-libs/options.mk +++ b/x11/qt4-libs/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.3 2007/09/03 09:35:16 drochner Exp $ +# $NetBSD: options.mk,v 1.4 2009/10/18 16:34:34 ahoka Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.qt4 -PKG_SUPPORTED_OPTIONS= cups debug +PKG_SUPPORTED_OPTIONS= cups debug gtk2 .include "../../mk/bsd.options.mk" @@ -12,6 +12,14 @@ CONFIGURE_ARGS+= -cups CONFIGURE_ARGS+= -no-cups .endif +.if !empty(PKG_OPTIONS:Mgtk2) +. include "../../devel/glib2/buildlink3.mk" +. include "../../x11/gtk2/buildlink3.mk" +CONFIGURE_ARGS+= -gtkstyle +.else +CONFIGURE_ARGS+= -no-gtkstyle +.endif + .if !empty(PKG_OPTIONS:Mdebug) CC+= -ggdb CXX+= -ggdb -- cgit v1.2.3