Revision: 76434 http://trac.macports.org/changeset/76434 Author: vince@macports.org Date: 2011-02-23 00:51:18 -0800 (Wed, 23 Feb 2011) Log Message: ----------- Correct a bug in 3.9.37 Modified Paths: -------------- trunk/dports/math/atlas/Portfile Modified: trunk/dports/math/atlas/Portfile =================================================================== --- trunk/dports/math/atlas/Portfile 2011-02-23 08:07:22 UTC (rev 76433) +++ trunk/dports/math/atlas/Portfile 2011-02-23 08:51:18 UTC (rev 76434) @@ -150,6 +150,40 @@ ${workpath}/${name}-${version}/CONFIG/src/SpewMakeInc.c } +# Bug in 3.9.37 +proc bug3_9_37 {arch path} { + switch ${arch} { + + x86_64 { + reinplace -E \ + "s|ATL_thread_exit.o ATL_thread_join.o|\ + ATL_thread_exit.o ATL_thread_join.o\ + ATL_DecAtomicCount_amd64.o|" ${path} + } + + i386 { + reinplace -E \ + "s|ATL_thread_exit.o ATL_thread_join.o|\ + ATL_thread_exit.o ATL_thread_join.o\ + ATL_DecAtomicCount_ia32.o|" ${path} + } + + ppc64 { + reinplace -E \ + 's|ATL_thread_exit.o ATL_thread_join.o|\ + ATL_thread_exit.o ATL_thread_join.o\ + ATL_DecAtomicCount_ppc.o|' ${path} + } + + ppc { + reinplace -E \ + 's|ATL_thread_exit.o ATL_thread_join.o|\ + ATL_thread_exit.o ATL_thread_join.o\ + ATL_DecAtomicCount_ppc.o|' ${path} + } + } +} + pre-configure { if { [variant_isset universal] } { foreach arch ${universal_archs_to_use} { @@ -185,6 +219,10 @@ } file mkdir ${atlas_path}/build + + # Correct a bug in 3.9.37 + set mkt ${atlas_path}/makes/Make.thr + bug3_9_37 ${arch} ${mkt} } }
participants (1)
-
vince@macports.org