Depend on ${PORTSDIR}/foo WITH_OPTION

Boris Samorodov bsam at ipt.ru
Wed May 19 17:58:28 UTC 2010


On Wed, 19 May 2010 20:07:25 +0300 Ion-Mihai Tetcu wrote:
> On Wed, 19 May 2010 08:11:48 +0200
> joris dedieu <joris.dedieu at gmail.com> wrote:

> > I would like to know if there is a way to tell a port that it depend
> > on an other port
> > but build with particulars options.
> > 
> > Eg : port foo build depend on bar but won't build if bar is not build
> > with WITH_PARTICULAR.
> > 
> > I  don't see anything to say that in bsd.port.mk, so before to
> > implement self made tests, I want to know if I miss something.

> no, there isn't.

Here is a workaround: create a port with needed options and use
that new port as a dependency. You may look at comms/gammy-python
as an example.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-ports mailing list