[82709] trunk/dports/lang/lua50/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Aug 18 13:19:13 PDT 2011


Revision: 82709
          http://trac.macports.org/changeset/82709
Author:   ryandesign at macports.org
Date:     2011-08-18 13:19:13 -0700 (Thu, 18 Aug 2011)
Log Message:
-----------
lua50: simplify setting archflags

Modified Paths:
--------------
    trunk/dports/lang/lua50/Portfile

Modified: trunk/dports/lang/lua50/Portfile
===================================================================
--- trunk/dports/lang/lua50/Portfile	2011-08-18 20:17:40 UTC (rev 82708)
+++ trunk/dports/lang/lua50/Portfile	2011-08-18 20:19:13 UTC (rev 82709)
@@ -25,13 +25,8 @@
 	reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/config
 	reinplace s|@DESTROOT@|${destroot}| ${worksrcpath}/config
 	reinplace s|@CC@|${configure.cc}| ${worksrcpath}/config
-	if {[variant_isset universal]} {
-	    reinplace "s|@CFLAGS@|${configure.cflags} ${configure.universal_cflags}|" ${worksrcpath}/config
-	    reinplace "s|@LDFLAGS@|${configure.universal_ldflags}|" ${worksrcpath}/config ${worksrcpath}/Makefile
-	} else {
-	    reinplace "s|@CFLAGS@|${configure.cflags} ${configure.cc_archflags}|" ${worksrcpath}/config
-	    reinplace "s|@LDFLAGS@|${configure.ld_archflags}|" ${worksrcpath}/config ${worksrcpath}/Makefile
-	}
+	reinplace "s|@CFLAGS@|${configure.cflags} [get_canonical_archflags]|" ${worksrcpath}/config
+	reinplace "s|@LDFLAGS@|[get_canonical_archflags]|" ${worksrcpath}/config ${worksrcpath}/Makefile
 }
 
 build.target	all dylib dylibbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110818/3c03b53d/attachment.html>


More information about the macports-changes mailing list