summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-06-08 17:50:14 +0000
committerwiz <wiz@pkgsrc.org>2000-06-08 17:50:14 +0000
commiteec31a5a0470dc4fd6a61306a88c5510c8a0c55e (patch)
tree7acf730247cd1025424b7c5becbb54efdff94617 /net/mtr
parent96d8e6507acc56c3ff02960b10aec9d925805fa7 (diff)
downloadpkgsrc-eec31a5a0470dc4fd6a61306a88c5510c8a0c55e.tar.gz
Use NetBSD's curses for 1.4Y+ instead of ncurses
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile18
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