[44717] trunk/dports/devel/libedit/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Fri Jan 2 02:16:55 PST 2009


Revision: 44717
          http://trac.macports.org/changeset/44717
Author:   mcalhoun at macports.org
Date:     2009-01-02 02:16:55 -0800 (Fri, 02 Jan 2009)
Log Message:
-----------
libedit: Inelegant workaround to allow universal build.

Modified Paths:
--------------
    trunk/dports/devel/libedit/Portfile

Modified: trunk/dports/devel/libedit/Portfile
===================================================================
--- trunk/dports/devel/libedit/Portfile	2009-01-02 10:08:31 UTC (rev 44716)
+++ trunk/dports/devel/libedit/Portfile	2009-01-02 10:16:55 UTC (rev 44717)
@@ -23,6 +23,17 @@
 
 depends_lib      port:ncurses
 
+variant universal {
+    # The libtool used by libedit does not use "-arch xxx" when linking.
+    # The workaround is to set CC (which is used as the linker) as
+    #     ${CC} -arch xxx -arch yyy ...
+    configure.cmd env CC=\"\${CC}
+    foreach arch ${universal_archs} {
+        configure.cmd-append -arch ${arch}
+    }
+    configure.cmd-append \" ./configure
+}
+
 livecheck.check regex
 livecheck.url   ${master_sites}
 livecheck.regex "${name}-(\\d+-\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090102/dcf3c04d/attachment.html>


More information about the macports-changes mailing list