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

ryandesign at macports.org ryandesign at macports.org
Tue Mar 6 15:33:13 PST 2012


Revision: 90484
          http://trac.macports.org/changeset/90484
Author:   ryandesign at macports.org
Date:     2012-03-06 15:33:12 -0800 (Tue, 06 Mar 2012)
Log Message:
-----------
tuntaposx: simplify getting archflags

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

Modified: trunk/dports/net/tuntaposx/Portfile
===================================================================
--- trunk/dports/net/tuntaposx/Portfile	2012-03-06 23:29:44 UTC (rev 90483)
+++ trunk/dports/net/tuntaposx/Portfile	2012-03-06 23:33:12 UTC (rev 90484)
@@ -34,13 +34,9 @@
                                                     ${worksrcpath}/src/tap/Makefile
     reinplace "s|CC = gcc|CC = ${configure.cc}|"    ${worksrcpath}/src/tun/Makefile \
                                                     ${worksrcpath}/src/tap/Makefile
-    if {[variant_isset universal]} {
-        reinplace "s|__CFLAGS__|${configure.universal_cflags}|" ${worksrcpath}/src/tun/Makefile \
-                                                                ${worksrcpath}/src/tap/Makefile
-    } else {
-        reinplace "s|__CFLAGS__|${configure.cflags}|"   ${worksrcpath}/src/tun/Makefile \
-                                                        ${worksrcpath}/src/tap/Makefile
-    }
+    
+    reinplace "s|__CFLAGS__|[get_canonical_archflags cc]|"  ${worksrcpath}/src/tun/Makefile \
+                                                            ${worksrcpath}/src/tap/Makefile
 }
 
 startupitem.create  yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120306/4d4dbe0f/attachment.html>


More information about the macports-changes mailing list