summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-06-12 10:59:42 +0000
committerwiz <wiz@pkgsrc.org>2000-06-12 10:59:42 +0000
commitf6b0f8d046bfb41038aeb5643ff19a3e29e2e7e9 (patch)
tree8e45109ae50e26be802a3d6dc0923f123ea1e849
parentd035f6a7b6d468140ce74233d794263d03baff3c (diff)
downloadpkgsrc-f6b0f8d046bfb41038aeb5643ff19a3e29e2e7e9.tar.gz
added hack to use NetBSD's curses on 1.4Y+ even if ncurses are installed
-rw-r--r--net/mtr/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index e5c3e306029..ed216981b2a 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2000/06/08 17:50:14 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2000/06/12 10:59:42 wiz Exp $
# $FreeBSD: ports/net/mtr/Makefile,v 1.16 1999/10/28 08:06:00 mharo Exp $
DISTNAME= mtr-0.42
@@ -24,7 +24,15 @@ CURSES_GOOD?= # defined
.endif
.endfor
-.if !defined(CURSES_GOOD)
+.if defined(CURSES_GOOD)
+# hack to use curses even if ncurses are also installed
+pre-configure:
+.for FILE in configure configure.in
+ cd ${WRKSRC}; ${SED} "s/ncurses/curses/" < ${FILE} \
+ > ${FILE}.patched; ${MV} ${FILE}.patched ${FILE}
+.endfor
+ ${CHMOD} 755 ${WRKSRC}/configure
+.else
DEPENDS+= ncurses>=4.2:../../devel/ncurses
.endif