pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net fix build on Solaris by linking against ncurses in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d73821740b1
branches:  trunk
changeset: 482909:7d73821740b1
user:      grant <grant%pkgsrc.org@localhost>
date:      Fri Nov 05 09:01:11 2004 +0000

description:
fix build on Solaris by linking against ncurses instead of libtermcap
libtermcap == libcurses on Solaris 9 but it lacks the wattr_{on,off}
functions and the configure script doesn't check for them.

no PKGREVISION bump as this was already depending on ncurses where
appropriate.

diffstat:

 net/mtr-gtk/Makefile |  7 ++++++-
 net/mtr/Makefile     |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 881c6e8c9592 -r 7d73821740b1 net/mtr-gtk/Makefile
--- a/net/mtr-gtk/Makefile      Fri Nov 05 02:58:56 2004 +0000
+++ b/net/mtr-gtk/Makefile      Fri Nov 05 09:01:11 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/10/27 16:18:31 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2004/11/05 09:03:15 grant Exp $
 #
 
 DISTNAME=      mtr-0.65
@@ -19,6 +19,11 @@
 
 INSTALLATION_DIRS=     man/man8 sbin
 
+# mtr uses libtermcap by default, but needs wattr_{on,off} from (n)curses,
+# so we rewrite -ltermcap to -lncurses (which will be auto-mangled into
+# -lcurses on the appropriate platforms).
+BUILDLINK_TRANSFORM+=  l:termcap:ncurses
+
 do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mtr-gtk
        ${INSTALL} -c -s -m 4755 -o ${ROOT_USER} -g ${ROOT_GROUP} ${WRKSRC}/mtr ${PREFIX}/sbin/mtr-gtk
diff -r 881c6e8c9592 -r 7d73821740b1 net/mtr/Makefile
--- a/net/mtr/Makefile  Fri Nov 05 02:58:56 2004 +0000
+++ b/net/mtr/Makefile  Fri Nov 05 09:01:11 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2004/10/27 16:18:31 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2004/11/05 09:01:11 grant Exp $
 #
 
 DISTNAME=      mtr-0.65
@@ -17,6 +17,11 @@
 CONFIGURE_ARGS+=       --without-gtk
 INSTALLATION_DIRS=     man/man8 sbin
 
+# mtr uses libtermcap by default, but needs wattr_{on,off} from (n)curses,
+# so we rewrite -ltermcap to -lncurses (which will be auto-mangled into
+# -lcurses on the appropriate platforms).
+BUILDLINK_TRANSFORM+=  l:termcap:ncurses
+
 do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mtr
        ${INSTALL} -c -s -m 4755 -o ${ROOT_USER} -g ${ROOT_GROUP} ${WRKSRC}/mtr ${PREFIX}/sbin



Home | Main Index | Thread Index | Old Index