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

illogic-al at macports.org illogic-al at macports.org
Sat Oct 18 11:39:09 PDT 2008


Revision: 40942
          http://trac.macports.org/changeset/40942
Author:   illogic-al at macports.org
Date:     2008-10-18 11:39:09 -0700 (Sat, 18 Oct 2008)
Log Message:
-----------
Fix for macports 1.6. Add ${configure.universal_sysroot} like in gtk2 port.

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

Modified: trunk/dports/textproc/help2man/Portfile
===================================================================
--- trunk/dports/textproc/help2man/Portfile	2008-10-18 18:16:55 UTC (rev 40941)
+++ trunk/dports/textproc/help2man/Portfile	2008-10-18 18:39:09 UTC (rev 40942)
@@ -27,9 +27,17 @@
 configure.env	PERL=${prefix}/bin/perl
 configure.args	--mandir=${prefix}/share/man --infodir=${prefix}/share/info
 
+if {[variant_isset universal]} {
+    if {[file exists /Developer/SDKs/MacOSX10.5.sdk]} {
+        set configure.universal_sysroot "/Developer/SDKs/MacOSX10.5.sdk"
+    } else {
+        set configure.universal_sysroot "/Developer/SDKs/MacOSX10.4u.sdk"
+    }   
+ }
+
 post-patch {
 	if {[variant_isset universal]} {
-		reinplace "s|-bundle|-bundle -isysroot ${configure.universal_sysroot} -arch i386 -arch ppc|" ${worksrcpath}/Makefile.in
+        reinplace "s|-bundle|-bundle -isysroot ${configure.universal_sysroot} ${configure.universal_ldflags}|" ${worksrcpath}/Makefile.in
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081018/dde370a3/attachment.html 


More information about the macports-changes mailing list