From owner-freebsd-ports@FreeBSD.ORG Tue Nov 22 01:10:42 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 5839B1065670 for ; Tue, 22 Nov 2011 01:10:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 1B388151E73; Tue, 22 Nov 2011 01:10:27 +0000 (UTC) Message-ID: <4ECAF682.2050400@FreeBSD.org> Date: Mon, 21 Nov 2011 17:10:26 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111110 Thunderbird/8.0 MIME-Version: 1.0 To: Matthew Seaman 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> In-Reply-To: <4ECADC06.3020403@infracaninophile.co.uk> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: sam@cassiba.com, freebsd-ports@freebsd.org, =?ISO-8859-1?Q?Be=F1at_Gonzalez_Etxepare?= Subject: Re: Slave ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2011 01:10:42 -0000 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/