[30809] trunk/dports/net/junkbuster/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 7 03:10:06 PST 2007


Revision: 30809
          http://trac.macosforge.org/projects/macports/changeset/30809
Author:   mww at macports.org
Date:     2007-11-07 03:10:00 -0800 (Wed, 07 Nov 2007)

Log Message:
-----------
we need to replace CC in Makefile as Junkbuster does not use a autotools;
for 'darwin [89] i386' use the MacPorts provided apple-gcc33

Modified Paths:
--------------
    trunk/dports/net/junkbuster/Portfile

Modified: trunk/dports/net/junkbuster/Portfile
===================================================================
--- trunk/dports/net/junkbuster/Portfile	2007-11-07 10:59:29 UTC (rev 30808)
+++ trunk/dports/net/junkbuster/Portfile	2007-11-07 11:10:00 UTC (rev 30809)
@@ -88,9 +88,9 @@
 		xinstall -m 0644 ${blockfile} ${docdir}
 	}
 	
-	reinplace "s%__PREFIX%${prefix}%g" \
-		${rcddir}/junkbuster.sh \
-		${etcdir}/configfile.sample
+#	reinplace "s%__PREFIX%${prefix}%g" \
+#		${rcddir}/junkbuster.sh \
+#		${etcdir}/configfile.sample
 	
 	xinstall -o nobody -g nobody -d -m 0755 \
 		${destroot}${prefix}/var/run/junkbuster
@@ -111,16 +111,21 @@
 	}
 }
 
-platform darwin 8 {
-	configure.compiler gcc-3.3
+platform darwin 8 powerpc {
+	post-patch { reinplace "s|^CC.*|CC=/usr/bin/gcc-3.3|g" ${worksrcpath}/Makefile }
 }
 
-platform darwin 9 {
-	configure.compiler gcc-3.3
+platform darwin 8 i386 {
+	depends_build-append apple-gcc33
+	post-patch { reinplace "s|^CC.*|CC=${prefix}/bin/gcc-apple-3.3|g" ${worksrcpath}/Makefile }
 }
 
-platform darwin i386 {
-	pre-fetch {
-		return -code error "Sorry, ${name} cannot be built on Intel Macs because it requires GCC 3.3. Please ask the author of this software to update it for GCC 4 compatibility."
-	}
+platform darwin 9 powerpc {
+	post-patch { reinplace "s|^CC.*|CC=/usr/bin/gcc-3.3|g" ${worksrcpath}/Makefile }
 }
+
+platform darwin 9 i386 {
+	depends_build-append apple-gcc33
+	post-patch { reinplace "s|^CC.*|CC=${prefix}/bin/gcc-apple-3.3|g" ${worksrcpath}/Makefile }
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071107/6623cfb8/attachment.html


More information about the macports-changes mailing list