On Nov 15, 2012, at 14:01, [email protected] wrote: > Revision: 99743 > https://trac.macports.org/changeset/99743 > Author: [email protected] > 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. _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
