[76434] trunk/dports/math/atlas/Portfile

vince at macports.org vince at macports.org
Wed Feb 23 00:51:19 PST 2011


Revision: 76434
          http://trac.macports.org/changeset/76434
Author:   vince at 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}
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110223/7f097f5c/attachment-0001.html>


More information about the macports-changes mailing list