RUN_DEPENDS with specific options turned on ...
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Nov 13 22:39:29 PST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20061114/e78df3b1/signature.pgp
More information about the freebsd-ports
mailing list