Subject: Re: Xft2 buildlink2 patch for xfree-current (coming 4.3)
To: None <tech-pkg@netbsd.org>
From: Rene Hexel <rh@netbsd.org>
List: tech-pkg
Date: 01/15/2003 07:11:25
On Tue, 2003-01-14 at 17:33, Bernd Ernesti wrote:

> On Tue, Jan 14, 2003 at 07:18:41AM +1000, Rene Hexel wrote:
> > On Tue, 2003-01-14 at 05:34, Bernd Ernesti wrote:
> > 
> > > Here is a patch for Xft2 which is not really tested, but I think
> > > I share the patch here so someone else can take a look at it.
> > 
> >   I'm not sure if the following will work:
> > 
> > 
> > > BUILDLINK_DEPENDS.Xft2?=              Xft2>=2.0.1
> > > [...]
> > > _XFT2_DEPENDS=                        ${BUILDLINK_DEPENDS.Xft2}
> > > [...]
> > > # If we depend on the package, depend on the latest version
> > > # with a library major bump.
> > > BUILDLINK_DEPENDS.Xft2?=              Xft2>=2.1
> 
> Hmm, the ?= should be just a =
> Thats what the freetype2 buildlink file uses. Don't know why I added a ?
> here.

  This probably works, but it has the disadvantage that packages will no
longer be able to override BUILDLINK_DEPENDS.Xft2 (e.g., if they need a
newer version or a specific version of Xft2).

  What about this:

...
_XFT2_DEPENDS=                  Xft2>=2.0.1
...
# If we depend on the package, depend on the latest version
# with a library major bump.
_XFT2_DEPENDS:=                 Xft2>=2.1
...
BUILDLINK_DEPENDS.Xft2?=        ${_XFT2_DEPENDS}
...

  ?

  Cheers
      ,
   Rene