pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt4-libs Add option for gtk2 support. (allows qt t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8187cd137aca
branches:  trunk
changeset: 566229:8187cd137aca
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Sun Oct 18 16:34:34 2009 +0000

description:
Add option for gtk2 support. (allows qt to draw native gtk2 widgets)

diffstat:

 x11/qt4-libs/options.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r ae40ad0c6c9c -r 8187cd137aca x11/qt4-libs/options.mk
--- a/x11/qt4-libs/options.mk   Sun Oct 18 12:47:53 2009 +0000
+++ b/x11/qt4-libs/options.mk   Sun Oct 18 16:34:34 2009 +0000
@@ -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+=       -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



Home | Main Index | Thread Index | Old Index