Marc G. Fournier wrote: > For instance, if I have a port that I'm working on that requires Postfix with > MYSQL enabled, is there some way of passing that information to the postfix > port through the previous ports Makefile?
The usual solution to that problem would be to create a slave postfix
port that defaulted to having MySQL support turned on, and make that
into the RUN_DEPENDS default target.
That doesn't help if someone is trying to install your port on a machine
where postfix was previously installed -- the ports system will detect
that there is a 'postfix' binary installed and assume that satisfies
the dependency. You could however add logic to your port (in the pre-
install target would be good for a RUN_DEPENDS) to test if postfix is
linked against the MySQL shlib (ie. by grepping the output of ldd) and
erroring out if the appropriate linkage is not found. I think there's
some precedent for doing that sort of thing with various ports that do
or do not want a threaded perl as a dependency but I can't think of an
instance off hand.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature
