[45156] trunk/dports/net/tuntaposx/Portfile

febeling at macports.org febeling at macports.org
Fri Jan 9 01:43:27 PST 2009


Revision: 45156
          http://trac.macports.org/changeset/45156
Author:   febeling at macports.org
Date:     2009-01-09 01:43:27 -0800 (Fri, 09 Jan 2009)
Log Message:
-----------
net/tuntaposx: ensure apple gcc is used; closes #17892.

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

Modified: trunk/dports/net/tuntaposx/Portfile
===================================================================
--- trunk/dports/net/tuntaposx/Portfile	2009-01-09 08:54:01 UTC (rev 45155)
+++ trunk/dports/net/tuntaposx/Portfile	2009-01-09 09:43:27 UTC (rev 45156)
@@ -4,7 +4,7 @@
 
 name			tuntaposx
 version			20080804
-
+revision                1
 categories		net
 maintainers		febeling openmaintainer
 description		Tun and tap virtual devices.
@@ -20,6 +20,13 @@
 destroot.violate_mtree  yes
 destroot.args           BASE=${destroot}${prefix}
 
+post-patch {
+	reinplace "s|CCP = g++|CCP = /usr/bin/g++|" ${worksrcpath}/src/tun/Makefile
+	reinplace "s|CC = gcc|CC = /usr/bin/gcc|" ${worksrcpath}/src/tun/Makefile
+	reinplace "s|CCP = g++|CCP = /usr/bin/g++|" ${worksrcpath}/src/tap/Makefile
+	reinplace "s|CC = gcc|CC = /usr/bin/gcc|" ${worksrcpath}/src/tap/Makefile
+}
+
 startupitem.create      yes
 startupitem.pidfile     none
 set kext_dir            ${prefix}/Library/Extensions
@@ -29,7 +36,7 @@
 post-destroot {
 	set docs ${destroot}${prefix}/share/doc/${name}-${version}
 	xinstall -m 755 -d ${docs}
-	xinstall -m 644 -W ${worksrcpath} README ChangeLog ${docs}
+	xinstall -m 644 -W ${worksrcpath} README Changelog ${docs}
 }
 
 post-activate {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090109/4905229b/attachment.html>


More information about the macports-changes mailing list