Subject: Re: Developing packges with alternates as dependencies?
To: Gary Thorpe <gathorpe79@yahoo.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-users
Date: 04/25/2007 17:21:36
On Wed, 25 Apr 2007 15:12:28 -0400 (EDT)
Gary Thorpe <gathorpe79@yahoo.com> wrote:

> Hi,
> 
> I am trying to import a software package into pkgsrc and I have a
> problem regarding 'alternate' dependencies: by this I mean the package
> requires either one OR another package to build but not both (and
> these two packages conflict). If either one is present, then the
> package I am working on can be built.
> 
> I have specified the dependency for one of these by doing something
> like this in the Makefile:
> .include        "../../devel/standalone-libs/buildlink3.mk"
> 
> but if ../../sysutils/progwithlibs (which has standalone-libs as part
> of its distribution) has already been installed, then I would want to
> use the libraries bundled with it already.
> 
> Is this possible to do?
> 
Yes, I think so.  The options.mk file for sysutils/memtestplus has

 
BUILD_DEPENDS+={cdrtools,cdrtools-ossdvd}>=2.01:../../sysutils/cdrtools



		--Steve Bellovin, http://www.cs.columbia.edu/~smb