diff options
-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 |