diff options
author | wiz <wiz> | 2000-06-12 10:59:42 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-06-12 10:59:42 +0000 |
commit | 3d36aefbe518c76080cc03308fc2391fb8de3415 (patch) | |
tree | 8e45109ae50e26be802a3d6dc0923f123ea1e849 /net/mtr | |
parent | 66639197e924756382ad363e59066310cbd2dfbf (diff) | |
download | pkgsrc-3d36aefbe518c76080cc03308fc2391fb8de3415.tar.gz |
added hack to use NetBSD's curses on 1.4Y+ even if ncurses are installed
Diffstat (limited to 'net/mtr')
-rw-r--r-- | net/mtr/Makefile | 12 |
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 |