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

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 21 17:57:10 PST 2007


Revision: 22213
          http://trac.macosforge.org/projects/macports/changeset/22213
Author:   pipping at macports.org
Date:     2007-02-21 17:57:09 -0800 (Wed, 21 Feb 2007)

Log Message:
-----------
 * add dependency on ncurses

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

Modified: trunk/dports/x11/xterm/Portfile
===================================================================
--- trunk/dports/x11/xterm/Portfile	2007-02-21 23:34:32 UTC (rev 22212)
+++ trunk/dports/x11/xterm/Portfile	2007-02-22 01:57:09 UTC (rev 22213)
@@ -15,9 +15,18 @@
 master_sites		ftp://invisible-island.net/xterm/
 extract.suffix		.tgz
 checksums			sha1 60573ad30682f023540ae05124cad6e10a0f9b74
-depends_lib			lib:libX11.6:XFree86
-configure.args		--mandir=${prefix}/share/man
+depends_lib			lib:libX11.6:XFree86 port:ncurses
+configure.args		--mandir=${prefix}/share/man \
+                    CPPFLAGS="-I${prefix}/include" \
+                    LDFLAGS="-L${prefix}/lib"
 
+# FLAGS in configure.env are ignored. If -ltermcap stays in the LDFLAGS,
+# xterm is linked against both /usr/lib's and ${prefix}/lib's libncurses.
+
+post-configure {
+    reinplace "s|-ltermcap|-lncurses|" ${worksrcpath}/Makefile
+}
+
 platform darwin 8 {
 	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070221/648e68c5/attachment.html


More information about the macports-changes mailing list