Best way to make the port install another port

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Tue Nov 12 20:52:18 UTC 2013


Big Lebowski <spankthespam at gmail.com> writes:

> On Sun, Nov 10, 2013 at 6:02 PM, Big Lebowski <spankthespam at gmail.com>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.



More information about the freebsd-ports mailing list