Optionally depending on one of two ports (or none of them)
m.seaman at infracaninophile.co.uk
Sun Feb 25 10:00:43 UTC 2007
Mark Linimon wrote:
> On Sat, Feb 24, 2007 at 07:13:01PM +0000, Matthew Seaman wrote:
>> Why not do it this way?
>> HAVE_TOR_DEVEL!= if pkg_info -I tor-devel-\* >/dev/null 2>&1 ; then echo YES; fi
> The problem with this approach is that you couple another shell invocation
> into 'make index'. As long as they are in individual ports, it's ok, but
> when we get them in the infrastructure, that's when things slow down.
That should be possible to work around though. After all, the INDEX has no
capability to deal with alternate dependency trees. Thus there has to be a
default dependency, which is what will go into the INDEX available from the
freebsd.org servers. A scheme like the way the OPTIONS variable works, ie.
creating a small Makefile with the results of these sort of choices -- but
only when specifically invoked by the user and then subsequently just
.included if it exists -- should address your concerns.
When building an INDEX, either the options Makefile exists and is included
to possibly override some settings, or it doesn't exist and you just get the
defaults. Either way the extra processing by make(1) during the index build
is kept to a minimal amount.
> No, I don't have an alternative proposal.
Well, there are programs available that make maintaining the INDEX
enormously more efficient than building it from scratch every time...
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070225/21c43ef0/signature.pgp
More information about the freebsd-ports