Subject: Re: Debugging a buildlink wrapper problem?
To: Dieter Baron <dillo@danbala.ifoer.tuwien.ac.at>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 08/08/2005 13:28:03
On Mon, Aug 08, 2005 at 12:22:34PM +0200, Dieter Baron wrote:
> > What about this: 
> 
> > +JDK14_USE_MOZILLA?=	NO
> 
>   Please use an options group for this, not a separate variable.
> We're currently changing all packages to use options for this kind of
> configurability.

Thanks for the suggestion.  

But can I then use an abstract ${JDK14_USE_MOZILLA} variable to do the
includes etc, or do I have to specify them again for each option?  

e.g. can I still do 

BUILD_DEPENDS+= ${JDK14_USE_MOZILLA}-[0-9]*:../../www/${JDK14_USE_MOZILLA}
BUILDLINK_PASSTHRU_DIRS+= ${LOCALBASE}/include/${JDK14_USE_MOZILLA}/nspr
SUBST_SED.paths+= -e 's,%%MOZILLA%%,${JDK14_USE_MOZILLA},g'

or will I have to insert this code 4 times?  

GH