Date: Mon, 21 Nov 2011 17:10:26 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: sam@cassiba.com, freebsd-ports@freebsd.org, =?ISO-8859-1?Q?Be=F1at_Gonzalez_Etxepare?= <bbtruk@users.sourceforge.net> Subject: Re: Slave ports Message-ID: <4ECAF682.2050400@FreeBSD.org> In-Reply-To: <4ECADC06.3020403@infracaninophile.co.uk> References: <20111108180947.288e9a42.bbtruk@users.sourceforge.net> <4EB9771C.5080006@cassiba.com> <20111119234758.e4a46127.bbtruk@users.sourceforge.net> <4EC8C71B.4070405@infracaninophile.co.uk> <20111121232133.9cf7269a.bbtruk@users.sourceforge.net> <4ECADC06.3020403@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ECAF682.2050400>