From 86c6d66afb3d586ab06dae0e26e361eda0eebf52 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 12 Sep 2002 03:15:13 +0000 Subject: [PATCH] Mention that it is now up to the porter to decide when to use the DATADIR PLIST_SUB in GNOMENG. --- en/gnome/docs/porting.sgml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/en/gnome/docs/porting.sgml b/en/gnome/docs/porting.sgml index dad768ea18..b448c9c0e5 100644 --- a/en/gnome/docs/porting.sgml +++ b/en/gnome/docs/porting.sgml @@ -1,6 +1,6 @@ - + %gnomeincludes; %includes; @@ -228,11 +228,13 @@ WANT_GNOME= yes .include <bsd.port.pre.mk> .if ${HAVE_GNOME:Mlibpanel}!="" -USE_GNOME+= libpanel +USE_GNOME+= gnomeprefix libpanel CONFIGURE_ARGS+= --with-gnome PKGNAMESUFFIX= -gnome +PLIST_SUB= DATADIR="share/gnome" .else CONFIGURE_ARGS+= --without-gnome +PLIST_SUB= DATADIR="share" .endif .include <bsd.port.post.mk> @@ -253,7 +255,12 @@ CONFIGURE_ARGS+= --without-gnome automatically adjusted by the proper USE_* macro. In GNOMENG, it is up to the individual porter to do this. Our example port appends -gnome to the port name - to indicate it has been built with GNOME support. + to indicate it has been built with GNOME support. The same is + true for the DATADIR PLIST_SUB. In GNOMENG, + the individual porter must decide when do the DATADIR + substitution. A good rule of thumb is to add the DATADIR + PLIST_SUB when using the gnomeprefix + component.

To enforce use of optional GNOME dependencies no matter what,