Subject: gaim with optional gtkspell
To: None <tech-pkg@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 08/29/2005 12:08:09
--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

In attachment is a diff which makes the gtkspell dependency for chat/gaim
optional (enabled by default for compatibility).  Does it look ok?  

GH

--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gaim.diff"

--- chat/gaim/Makefile	2005-08-29 10:43:01.000000000 +0200
+++ ghen/gaim/Makefile	2005-08-29 11:36:40.000000000 +0200
@@ -45,7 +45,6 @@
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/silc-toolkit/buildlink3.mk"
-.include "../../textproc/gtkspell/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"
 .include "../../x11/startup-notification/buildlink3.mk"
 
--- chat/gaim/options.mk	2005-08-19 12:24:25.000000000 +0200
+++ ghen/gaim/options.mk	2005-08-29 11:35:07.000000000 +0200
@@ -1,7 +1,8 @@
 # $NetBSD: options.mk,v 1.1 2005/08/19 10:24:25 grant Exp $
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.gaim
-PKG_SUPPORTED_OPTIONS+=		gnutls
+PKG_SUPPORTED_OPTIONS+=		gnutls gtkspell
+PKG_SUGGESTED_OPTIONS+=		gtkspell
 
 .include "../../mk/bsd.options.mk"
 
@@ -20,3 +21,9 @@
 
 .  include "../../devel/nss/buildlink3.mk"
 .endif
+
+.if !empty(PKG_OPTIONS:Mgtkspell)
+.  include "../../textproc/gtkspell/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-gtkspell
+.endif

--2fHTh5uZTiUOsy+g--