[106022] trunk/dports/python/py-qutip/Portfile
Frank Schima
macsforever2000 at macports.org
Mon May 13 13:30:32 PDT 2013
On May 13, 2013, at 2:14 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On May 13, 2013, at 12:39, macsforever2000 at macports.org wrote:
>
>> Revision: 106022
>> https://trac.macports.org/changeset/106022
>> Author: macsforever2000 at macports.org
>> 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].
OK. I was just copying code from the python 1.0 portgroup. So it needs to be fixed there too.
Cheers!
Frank
More information about the macports-dev
mailing list