diff options
author | wiz <wiz> | 2000-06-08 17:50:14 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-06-08 17:50:14 +0000 |
commit | cc9d98ba114e169497d3eedbb246b1b0d6b7c4c1 (patch) | |
tree | 7acf730247cd1025424b7c5becbb54efdff94617 /net/mtr | |
parent | e249060fd072dd89ffa7324934ae04280e55c50a (diff) | |
download | pkgsrc-cc9d98ba114e169497d3eedbb246b1b0d6b7c4c1.tar.gz |
Use NetBSD's curses for 1.4Y+ instead of ncurses
Diffstat (limited to 'net/mtr')
-rw-r--r-- | net/mtr/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile index df17202b7a7..e5c3e306029 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2000/03/17 14:22:49 tron Exp $ +# $NetBSD: Makefile,v 1.7 2000/06/08 17:50:14 wiz Exp $ # $FreeBSD: ports/net/mtr/Makefile,v 1.16 1999/10/28 08:06:00 mharo Exp $ DISTNAME= mtr-0.42 @@ -10,14 +10,24 @@ MAINTAINER= sommerfeld@netbsd.org HOMEPAGE= http://www.bitwizard.nl/mtr/ DEPENDS+= gtk+>=1.2.7:../../x11/gtk -# not needed in current as of some time before 1999/12/1, but -# needed for 1.4.x, so just use ncurses.. -DEPENDS+= ncurses>=4.2:../../devel/ncurses GNU_CONFIGURE= yes USE_GMAKE= yes CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include +OSVER!= uname -r +GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]* + +.for PATTERN in ${GOOD_CURSES} +.if ${OSVER:M${PATTERN}} != "" +CURSES_GOOD?= # defined +.endif +.endfor + +.if !defined(CURSES_GOOD) +DEPENDS+= ncurses>=4.2:../../devel/ncurses +.endif + do-install: ${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/mtr ${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/mtr.8 ${PREFIX}/man/man8 |