[120703] trunk/dports/science/root6/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Jun 5 20:01:59 PDT 2014


On Jun 5, 2014, at 6:58 PM, mojca at macports.org wrote:

> Revision
> 120703
> Author
> mojca at macports.org
> Date
> 2014-06-05 16:58:25 -0700 (Thu, 05 Jun 2014)
> Log Message
> 
> root6: use libc++ on < 10.9 (#43917)
> Modified Paths
> 
> 	• trunk/dports/science/root6/Portfile
> Diff
> 
> Modified: trunk/dports/science/root6/Portfile (120702 => 120703)
> 
> --- trunk/dports/science/root6/Portfile	2014-06-05 22:51:34 UTC (rev 120702)
> +++ trunk/dports/science/root6/Portfile	2014-06-05 23:58:25 UTC (rev 120703)
> 
> @@ -37,6 +37,27 @@
> 
>  configure.dir       ${workpath}/build
> 
>  build.dir           ${configure.dir}
> 
>  
> 
> +# (copied from llvm-3.5)
> +# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released

Note that MacPorts 2.3 has been released.

> +platform darwin {
> +    # Note that we are forcing this choice.  This means that anything linking
> +    # against llvm-3.5 needs to also be using libc++.  This is possibly

Here you probably meant to replace "llvm-3.5" with "root6".

> +    # problematic, but luckily there is just a limited set of such dependents.
> +
> +    if {[info exists configure.cxx_stdlib]} {
> +        configure.cxx_stdlib libc++
> +    }
> +
> +    depends_lib-append port:libcxx
> +}
> +pre-fetch {
> +    if {(${os.major} < 13 && ! [info exists configure.cxx_stdlib]) ||
> +        (! [file exists /usr/lib/libc++.dylib])} {
> +        ui_error "$name requires a C++11 runtime, which your configuration does not allow"
> +        error "unsupported configuration"
> +    }
> +}





More information about the macports-dev mailing list