[99743] trunk/dports/graphics/ipe/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Nov 15 13:40:07 PST 2012


On Nov 15, 2012, at 14:01, vince at macports.org wrote:

> Revision: 99743
>          https://trac.macports.org/changeset/99743
> Author:   vince at macports.org
> Date:     2012-11-15 12:01:38 -0800 (Thu, 15 Nov 2012)
> Log Message:
> -----------
> Allows universal builds
> 
> Modified Paths:
> --------------
>    trunk/dports/graphics/ipe/Portfile
> 
> Modified: trunk/dports/graphics/ipe/Portfile
> ===================================================================
> --- trunk/dports/graphics/ipe/Portfile	2012-11-15 16:33:06 UTC (rev 99742)
> +++ trunk/dports/graphics/ipe/Portfile	2012-11-15 20:01:38 UTC (rev 99743)
> @@ -33,8 +33,17 @@
> 
> use_configure           no
> 
> -build.env               CXXFLAGS="${configure.cxx_archflags}" \
> +variant    universal {
> +}
> +
> +if {[variant_isset universal]} {
> +    build.env           CXXFLAGS="${configure.universal_cflags}" \
> +                        LDFLAGS="${configure.universal_cflags}"
> +} else {
> +
> +    build.env           CXXFLAGS="${configure.cxx_archflags}" \
>                         LDFLAGS="${configure.ld_archflags}"
> +}

You could simplify this by using the [get_canonical_archflags] procedure.



More information about the macports-dev mailing list