Subject: gnome and www/libgtkhtml
To: None <tech-pkg@netbsd.org>
From: =?UTF-8?Q?C=C3=A9sar_Catri=C3=A1n?= C. <ccatrian@eml.cc>
List: tech-pkg
Date: 03/06/2005 19:01:59
Hi.

I would like to suggest gnome as optional in www/libgtkhtml .

Can I file a PR for it? and for other packages as well.

Regards

--
  César Catrián C.
  http://mioficina.cjc.cl

--- Makefile.orig       2005-03-03 00:30:26.000000000 -0300
+++ Makefile    2005-03-06 18:22:13.000000000 -0300
@@ -18,11 +18,12 @@
 USE_LIBTOOL=           yes
 USE_X11=               yes
 
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
 PKGCONFIG_OVERRIDE=    libgtkhtml-2.0.pc.in
 
-.include "../../devel/gail/buildlink3.mk"
 .include "../../devel/pkgconfig/buildlink3.mk"
-.include "../../sysutils/gnome-vfs2/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"

--- /dev/null   2005-03-06 18:40:07.000000000 -0300
+++ options.mk  2005-03-06 18:32:32.000000000 -0300
@@ -0,0 +1,13 @@
+# $NetBSD$
+#
+ 
+PKG_OPTIONS_VAR=        PKG_OPTIONS.libgtkhtml
+PKG_SUPPORTED_OPTIONS=  gnome
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnome)
+.  include "../../devel/gail/buildlink3.mk"
+.  include "../../sysutils/gnome-vfs2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-accessibility
+.endif

--- buildlink3.mk.orig  2005-01-13 11:22:32.000000000 -0300
+++ buildlink3.mk       2005-03-06 18:24:55.000000000 -0300
@@ -16,8 +16,13 @@
 BUILDLINK_PKGSRCDIR.libgtkhtml?=       ../../www/libgtkhtml
 .endif # LIBGTKHTML_BUILDLINK3_MK
 
-.include "../../devel/gail/buildlink3.mk"
-.include "../../sysutils/gnome-vfs2/buildlink3.mk"
+PKG_OPTIONS.libgtkhtml?=       ${PKG_DEFAULT_OPTIONS}
+
+.if !empty(PKG_OPTIONS.libgtkhtml:Mgnome)
+.  include "../../devel/gail/buildlink3.mk"
+.  include "../../sysutils/gnome-vfs2/buildlink3.mk"
+.endif
+
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"