[47552] trunk/dports/x11/xterm/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Feb 28 16:42:16 PST 2009


Revision: 47552
          http://trac.macports.org/changeset/47552
Author:   jeremyhu at macports.org
Date:     2009-02-28 16:42:16 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
xterm: Don't append -Lx11prefix/lib unless we need to

Modified Paths:
--------------
    trunk/dports/x11/xterm/Portfile

Modified: trunk/dports/x11/xterm/Portfile
===================================================================
--- trunk/dports/x11/xterm/Portfile	2009-03-01 00:41:39 UTC (rev 47551)
+++ trunk/dports/x11/xterm/Portfile	2009-03-01 00:42:16 UTC (rev 47552)
@@ -39,8 +39,12 @@
                     --enable-logging --enable-wide-chars \
                     --enable-256-color --enable-load-vt-fonts
 
-configure.cppflags-append -I${x11prefix}/include
-configure.ldflags-append -L${x11prefix}/lib
+pre-configure {
+    if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+        configure.cppflags-append -I${x11prefix}/include
+        configure.ldflags-append  -L${x11prefix}/lib
+    }
+}
 
 # If -ltermcap stays in the LDFLAGS, xterm is linked against both
 # /usr/lib's and ${prefix}/lib's libncurses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/5a6e3a7e/attachment.html>


More information about the macports-changes mailing list