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

ryandesign at macports.org ryandesign at macports.org
Wed Sep 9 13:05:26 PDT 2009


Revision: 57331
          http://trac.macports.org/changeset/57331
Author:   ryandesign at macports.org
Date:     2009-09-09 13:05:22 -0700 (Wed, 09 Sep 2009)
Log Message:
-----------
librsync: fix universal build; closes #21251

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

Modified: trunk/dports/net/librsync/Portfile
===================================================================
--- trunk/dports/net/librsync/Portfile	2009-09-09 19:48:55 UTC (rev 57330)
+++ trunk/dports/net/librsync/Portfile	2009-09-09 20:05:22 UTC (rev 57331)
@@ -32,5 +32,15 @@
 configure.args	--mandir=${prefix}/share/man \
 		--enable-shared
 
+post-configure {
+	if {[variant_isset universal]} {
+		set archflags [portconfigure::configure_get_universal_archflags]
+		reinplace -E "s|compiler_flags=$|compiler_flags=' ${archflags}'|" \
+			${worksrcpath}/libtool
+		reinplace -E "s|linker_flags=$|linker_flags=' ${archflags}'|" \
+			${worksrcpath}/libtool
+	}
+}
+
 test.run	yes
 test.target	check
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090909/49522437/attachment.html>


More information about the macports-changes mailing list