summaryrefslogtreecommitdiff
path: root/chat/xchat/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'chat/xchat/options.mk')
-rw-r--r--chat/xchat/options.mk47
1 files changed, 45 insertions, 2 deletions
diff --git a/chat/xchat/options.mk b/chat/xchat/options.mk
index add7bc91558..41f502d9d97 100644
--- a/chat/xchat/options.mk
+++ b/chat/xchat/options.mk
@@ -1,10 +1,12 @@
-# $NetBSD: options.mk,v 1.8 2005/12/05 23:55:03 rillig Exp $
+# $NetBSD: options.mk,v 1.9 2007/08/10 19:14:06 tron Exp $
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.xchat
-PKG_SUPPORTED_OPTIONS= inet6 ssl socks5
+PKG_SUPPORTED_OPTIONS= inet6 ssl socks5 mitshm gnome
+PKG_OPTIONS_GROUP.spell= libsexy gtkspell
+PKG_OPTIONS_OPTIONAL_GROUPS= spell
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
@@ -32,3 +34,44 @@ CONFIGURE_ARGS+= --enable-socks
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
+
+###
+### MIT-SHM extension support (for "fast tinting")
+###
+.if !empty(PKG_OPTIONS:Mmitshm)
+CONFIGURE_ARGS+= --enable-shm
+.else
+CONFIGURE_ARGS+= --disable-shm
+.endif
+
+###
+### GNOME support
+###
+.if !empty(PKG_OPTIONS:Mgnome)
+CONFIGURE_ARGS+= --enable-dbus
+PLIST_SUBST+= GNOME=""
+SUBST_CLASSES+= gconf
+SUBST_STAGE.gconf+= pre-configure
+SUBST_MESSAGE.gconf+= Disabling schema registration/installation.
+SUBST_SED.gconf+= -e 's,DO_GCONF_TRUE,DO_GCONF_FALSE,g'
+SUBST_FILES.gconf+= src/common/dbus/Makefile.in
+USE_DIRS+= gnome2-1.5
+. include "../../devel/GConf2/schemas.mk"
+. include "../../sysutils/dbus-glib/buildlink3.mk"
+.else
+# We set this to ${FALSE} to avoid detection.
+CONFIGURE_ARGS+= --disable-dbus
+PLIST_SUBST= GNOME="@comment "
+USE_DIRS+= xdg-1.1
+.endif
+
+###
+### Support for spell checking
+###
+.if !empty(PKG_OPTIONS:Mgtkspell)
+CONFIGURE_ARGS+= --enable-spell=gtkspell
+. include "../../textproc/gtkspell/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mlibsexy)
+CONFIGURE_ARGS+= --enable-spell=libsexy
+. include "../../devel/libsexy/buildlink3.mk"
+.endif