Re: portfile test for macosx 10.6.8 + libc++

2016-07-18 Thread Mojca Miklavec
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
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


portfile test for macosx 10.6.8 + libc++

2016-07-18 Thread Ken Cunningham
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?

Do you also think that same test should apply also to 10.7 with libc++, in most 
cases, ie lump them together?

Thanks,

Ken
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev