[66371] trunk/dports/textproc/help2man/Portfile

jmr at macports.org jmr at macports.org
Sat Apr 10 07:34:00 PDT 2010


Revision: 66371
          http://trac.macports.org/changeset/66371
Author:   jmr at macports.org
Date:     2010-04-10 07:33:56 -0700 (Sat, 10 Apr 2010)
Log Message:
-----------
help2man: remove universal_sysroot reference, insert ld arch flags for non-universal too

Modified Paths:
--------------
    trunk/dports/textproc/help2man/Portfile

Modified: trunk/dports/textproc/help2man/Portfile
===================================================================
--- trunk/dports/textproc/help2man/Portfile	2010-04-10 13:54:48 UTC (rev 66370)
+++ trunk/dports/textproc/help2man/Portfile	2010-04-10 14:33:56 UTC (rev 66371)
@@ -28,13 +28,13 @@
 configure.args  --enable-nls
 
 post-patch {
-    reinplace "s|-shared|-bundle ${configure.ldflags}|" ${worksrcpath}/Makefile.in
 	if {[variant_isset universal]} {
-		if {[info exists universal_sysroot]} {
-			reinplace "s|-bundle|-bundle -isysroot ${universal_sysroot} ${configure.universal_ldflags}|" ${worksrcpath}/Makefile.in
-		} else {
-			reinplace "s|-bundle|-bundle ${configure.universal_ldflags}|" ${worksrcpath}/Makefile.in
-		}
+		reinplace "s|-shared|-bundle ${configure.ldflags} ${configure.universal_ldflags}|" ${worksrcpath}/Makefile.in
+	} else {
+	    if {![info exists configure.ld_archflags]} {
+	        set configure.ld_archflags ${configure.cc_archflags}
+	    }
+	    reinplace "s|-shared|-bundle ${configure.ldflags} ${configure.ld_archflags}|" ${worksrcpath}/Makefile.in
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100410/9c3bf516/attachment.html>


More information about the macports-changes mailing list