Modified: trunk/dports/math/atlas/Portfile (76433 => 76434)
--- 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}
}
}