Using platforms in 2.8.0

Nils Breunese nils at breun.nl
Tue Nov 1 02:31:30 UTC 2022


Joshua Root <jmr at macports.org> wrote:

> On 2022-11-1 11:45 , Nils Breunese wrote:
> 
>> So when a port installs one pre-built binary on x86_64 and another on arm64, regardless of OS version, setting 'platforms {darwin any}’ would be appropriate and correct?
> 
> Sure. Unless the x86_64 binary was built targeting 10.5 though, you probably also need to restrict the versions. E.g. if the binary works on 10.12 and later:
> 
> platforms {darwin any} {darwin >= 16}

Should that be ‘platforms {darwin >= 16}’? If not, I don’t really understand the syntax above yet.

I already have Daerwin version checks in place, but I should indeed also be able to get rid of those if-statements using this new platforms syntax with version check.

Nils.


More information about the macports-dev mailing list