From owner-freebsd-ports@FreeBSD.ORG Tue Nov 12 20:52:18 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74C43880 for ; Tue, 12 Nov 2013 20:52:18 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4FCF22586 for ; Tue, 12 Nov 2013 20:52:18 +0000 (UTC) Received: by be-well.ilk.org (Postfix, from userid 1147) id E066333C26; Tue, 12 Nov 2013 15:52:11 -0500 (EST) From: Lowell Gilbert To: Big Lebowski Subject: Re: Best way to make the port install another port References: Date: Tue, 12 Nov 2013 15:52:11 -0500 In-Reply-To: (Big Lebowski's message of "Tue, 12 Nov 2013 18:58:45 +0000") Message-ID: <44habhbax0.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 20:52:18 -0000 Big Lebowski writes: > On Sun, Nov 10, 2013 at 6:02 PM, Big Lebowski wrote: > >> Hi, >> >> I wanted to add an option to one of my ports to optionally install >> commandline tool, that's in another port. Doing the options part is easy >> and clear, but how should I add that port to build procedure to do it the >> right-way? The most obvious way would be to add RUN_DEPENDS+=, but the >> original port doesnt really depend on this tools... >> >> Another question is to where is the best place to put such dependency? >> Post install, pre install? >> >> Thanks in advance! >> > > Just bumping it in a hope of someone actually knowing the answer... Yes, it's RUN_DEPENDS. See the OPTIONS example in the porter's handbook for a case.