Slave ports
Doug Barton
dougb at FreeBSD.org
Tue Nov 22 01:10:42 UTC 2011
On 11/21/2011 15:17, Matthew Seaman wrote:
> Lets suppose you want the gtk2 version of lazarus, and lets further
> suppose that the two slave ports discussed previously have been created.
>
> You would write dependency lines in the port Makefile eg. like this:
>
> BUILD_DEPENDS = lazarus:${PORTSDIR}/editors/lazarus-gtk2
In spite of its not being documented in bsd.port.mk (hello? portmgr?
anyone?) there is an alternate way to describe the dependency that would
fix this problem:
BUILD_DEPENDS= lazarus-gtk2>=1.23:${PORTSDIR}/editors/lazarus-gtk2
That tells the dependency tracking to look for a specific installed port
with version >= 1.23, or else build/install it. This method should *not*
be used where it isn't really needed, but it's very useful when it is.
Doug
--
"We could put the whole Internet into a book."
"Too practical."
Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price. :) http://SupersetSolutions.com/
More information about the freebsd-ports
mailing list