HOWTO automatically follow PHP default versions switches?

Michael Grimm trashcan at ellael.org
Mon Nov 5 18:07:35 UTC 2018


Mathieu Arnold <mat at FreeBSD.org> wrote:
> On Sun, Nov 04, 2018 at 05:40:35PM +0100, Michael Grimm wrote:

>> Question: Is there a way to automatically follow default version switches of PHP without having to touch those definitions above?
>> 
>> I cannot find something like meta-ports of lang/php-default and land/php-extensions-default, thus I do believe that it cannot be done. Correct?
> 
> It would not be appropriate for a port inside the ports tree, but you
> can simply replace all occurrences of 72 by ${PHP_DEFAULT}.

Thank you very much! That was a very helpful hint, indeed, and it works perfectly well, great.

Regards,
Michael



More information about the freebsd-ports mailing list