Subject: pkg/36339: make libcroco respect the gnome option
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yorick Hardy <yhardy@uj.ac.za>
List: pkgsrc-bugs
Date: 05/15/2007 08:05:00
>Number:         36339
>Category:       pkg
>Synopsis:       make libcroco respect the gnome option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 15 08:05:00 +0000 2007
>Originator:     Yorick Hardy
>Release:        NetBSD 4.99.16
>Organization:
>Environment:
System: NetBSD yorick 4.99.16 NetBSD 4.99.16 (HPNX6310DRMcurrent) #0: Sun Apr 8 20:20:02 SAST 2007 root@yorick:/var/tmp/build/objcur/sys/arch/i386/compile/HPNX6310DRMcurrent i386
Architecture: i386
Machine: i386
>Description:
libcroco does not respect the gnome option
>How-To-Repeat:
>Fix:
--- textproc/libcroco/Makefile.orig	2007-04-27 01:23:28.000000000 +0200
+++ textproc/libcroco/Makefile	2007-04-27 09:23:19.000000000 +0200
@@ -22,8 +22,12 @@
 CONFIGURE_ARGS+=	--enable-seleng=yes
 CONFIGURE_ARGS+=	--enable-layeng=yes
 
+.include "../../mk/bsd.options.mk"
+
 .include "../../devel/glib2/buildlink3.mk"
-.include "../../devel/libgnomeui/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mgnome)
+. include "../../devel/libgnomeui/buildlink3.mk"
+.endif
 .include "../../devel/pango/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
--- textproc/libcroco/buildlink3.mk.orig	2007-04-27 01:23:34.000000000 +0200
+++ textproc/libcroco/buildlink3.mk	2007-04-27 09:23:36.000000000 +0200
@@ -17,8 +17,12 @@
 BUILDLINK_PKGSRCDIR.libcroco?=	../../textproc/libcroco
 .endif	# LIBCROCO_BUILDLINK3_MK
 
+.include "../../mk/bsd.options.mk"
+
 .include "../../devel/glib2/buildlink3.mk"
-.include "../../devel/libgnomeui/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mgnome)
+. include "../../devel/libgnomeui/buildlink3.mk"
+.endif
 .include "../../devel/pango/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"