Revision
61057
Author
ryandesign@macports.org
Date
2009-12-01 05:47:28 -0800 (Tue, 01 Dec 2009)

Log Message

cdf: remove assumption that worksrcpath is the current working directory; see #17526 and #22592

Modified Paths

Diff

Modified: trunk/dports/science/cdf/Portfile (61056 => 61057)


--- trunk/dports/science/cdf/Portfile	2009-12-01 13:32:40 UTC (rev 61056)
+++ trunk/dports/science/cdf/Portfile	2009-12-01 13:47:28 UTC (rev 61057)
@@ -42,11 +42,11 @@
 patchfiles	patch-Makefile
 
 post-patch	{
-		  reinplace "s|-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1|`gcc-mp-4.2 -print-libgcc-file-name`|g" Makefile
-		  reinplace "s|-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64|`gcc-mp-4.2 -print-libgcc-file-name`|g" Makefile
-		  reinplace "s|-L/usr/lib/gcc/i686-apple-darwin8/4.0.1|`gcc-mp-4.2 -print-libgcc-file-name`|g" Makefile
+		  reinplace "s|-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1|`gcc-mp-4.2 -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
+		  reinplace "s|-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64|`gcc-mp-4.2 -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
+		  reinplace "s|-L/usr/lib/gcc/i686-apple-darwin8/4.0.1|`gcc-mp-4.2 -print-libgcc-file-name`|g" ${worksrcpath}/Makefile
 
-		  reinplace "s|/Developer/SDKs/MacOSX10.4u.sdk/usr/lib|${prefix}/lib|g" Makefile
+		  reinplace "s|/Developer/SDKs/MacOSX10.4u.sdk/usr/lib|${prefix}/lib|g" ${worksrcpath}/Makefile
 		}
 
 pre-build	{