[75934] trunk/dports/net/librsync/Portfile

jmr at macports.org jmr at macports.org
Sat Feb 12 23:27:57 PST 2011


Revision: 75934
          http://trac.macports.org/changeset/75934
Author:   jmr at macports.org
Date:     2011-02-12 23:27:56 -0800 (Sat, 12 Feb 2011)
Log Message:
-----------
librsync: fix build_arch support (#22955)

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

Modified: trunk/dports/net/librsync/Portfile
===================================================================
--- trunk/dports/net/librsync/Portfile	2011-02-13 07:21:45 UTC (rev 75933)
+++ trunk/dports/net/librsync/Portfile	2011-02-13 07:27:56 UTC (rev 75934)
@@ -34,11 +34,15 @@
 
 post-configure {
 	if {[variant_isset universal]} {
-		set archflags [portconfigure::configure_get_universal_archflags]
-		reinplace -E "s|compiler_flags=$|compiler_flags=' ${archflags}'|" \
+		reinplace -E "s|compiler_flags=$|compiler_flags=' ${configure.universal_cflags}'|" \
 			${worksrcpath}/libtool
-		reinplace -E "s|linker_flags=$|linker_flags=' ${archflags}'|" \
+		reinplace -E "s|linker_flags=$|linker_flags=' ${configure.universal_ldflags}'|" \
 			${worksrcpath}/libtool
+	} else {
+	    reinplace -E "s|compiler_flags=$|compiler_flags=' ${configure.cc_archflags}'|" \
+			${worksrcpath}/libtool
+		reinplace -E "s|linker_flags=$|linker_flags=' ${configure.ld_archflags}'|" \
+			${worksrcpath}/libtool
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110212/dcb9e681/attachment.html>


More information about the macports-changes mailing list