On May 13, 2013, at 12:39, [email protected] wrote:
> Revision: 106022
> https://trac.macports.org/changeset/106022
> Author: [email protected]
> Date: 2013-05-13 10:39:09 -0700 (Mon, 13 May 2013)
> Log Message:
> -----------
> py-qutip: Attempt to correctly add archflags.
>
> Modified Paths:
> --------------
> trunk/dports/python/py-qutip/Portfile
>
> Modified: trunk/dports/python/py-qutip/Portfile
> ===================================================================
> --- trunk/dports/python/py-qutip/Portfile 2013-05-13 17:29:39 UTC (rev
> 106021)
> +++ trunk/dports/python/py-qutip/Portfile 2013-05-13 17:39:09 UTC (rev
> 106022)
> @@ -41,12 +41,28 @@
>
> use_parallel_build no
>
> + if {[variant_isset gcc47] || [variant_isset gcc48] || [variant_isset
> gcc49]} {
> + if {[variant_exists universal] && [variant_isset universal]} {
> + build.env-append CFLAGS="${configure.universal_cflags}" \
> + OBJCFLAGS="${configure.universal_cflags}" \
> + CXXFLAGS="${configure.universal_cxxflags}" \
> + LDFLAGS="-undefined dynamic_lookup -bundle
> ${configure.universal_ldflags}"
> + } else {
> + build.env-append CFLAGS="${configure.cc_archflags}" \
> + OBJCFLAGS="${configure.objc_archflags}" \
> + CXXFLAGS="${configure.cxx_archflags}" \
> + FFLAGS="${configure.f77_archflags}" \
> + F90FLAGS="${configure.f90_archflags}" \
> + FCFLAGS="${configure.fc_archflags}" \
> + LDFLAGS="-undefined dynamic_lookup -bundle
> ${configure.ld_archflags}"
> + }
> + }
Instead of manually using ${configure.universal_xyz} if the universal variant
is set and ${configure.xyz_archflags} if not, you should just be able to use
[get_canoncial_archflags xyz].
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev