portfile test for macosx 10.6.8 + libc++
Mojca Miklavec
mojca at macports.org
Mon Jul 18 22:48:18 PDT 2016
On 19 July 2016 at 04:38, Ken Cunningham wrote:
> Hello everyone,
>
> I'd like to help with minor porfile adjustments to allow compiling on the above system, within my limited skill set.
>
> To allow for an accurate method of specifying a system running 10.6..8 + libc++, can anyone help me with a good test spec to run in a portfile?
platform darwin 10 {
if {${configure.cxx_stdlib} eq "libc++"} {
...
}
}
or (if you additionally to include a few more OS versions):
platform darwin {
if {${os.major} == 10} {
if {${configure.cxx_stdlib} eq "libc++"} {
...
}
}
}
> Do you also think that same test should apply also to 10.7 with libc++, in most cases, ie lump them together?
It depends on what exactly you need. Note that libc++ is also not
default on 10.8 and that it can be (painfully) made to work on 10.5.
Maybe you can exaplain a bit more about what you want to achieve.
Mojca
More information about the macports-dev
mailing list