summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authorwiz <wiz>2000-07-28 10:33:56 +0000
committerwiz <wiz>2000-07-28 10:33:56 +0000
commit46c4f8c2c2eed037fee73ca91838634011bbf1d4 (patch)
tree645721463659c2eb41c243dc65126304596e7750 /net/mtr
parent6e71d0ba90b1f2c7464e5aa7cc5537586fb1f184 (diff)
downloadpkgsrc-46c4f8c2c2eed037fee73ca91838634011bbf1d4.tar.gz
Add USE_CURSES for packages that need curses functionality that only
got added in 1.4Y; on older version of NetBSD, ncurses will be used. Replace previous code that did the same, but wasn't shared.
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile26
1 files changed, 4 insertions, 22 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 91fd21251ec..9a44b063aa4 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2000/06/14 02:10:58 hubertf Exp $
+# $NetBSD: Makefile,v 1.10 2000/07/28 10:33:59 wiz Exp $
# $FreeBSD: ports/net/mtr/Makefile,v 1.16 1999/10/28 08:06:00 mharo Exp $
DISTNAME= mtr-0.42
@@ -13,29 +13,11 @@ DEPENDS+= gtk+>=1.2.7:../../x11/gtk
GNU_CONFIGURE= yes
USE_GMAKE= yes
+USE_CURSES= yes
+# next line only needed if ncurses are also installed
+REPLACE_NCURSES= configure configure.in
CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include
-.include "../../mk/bsd.prefs.mk"
-GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]*
-
-.for PATTERN in ${GOOD_CURSES}
-.if ${OS_VERSION:M${PATTERN}} != ""
-CURSES_GOOD?= # defined
-.endif
-.endfor
-
-.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
-
do-install:
${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/mtr ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/mtr.8 ${PREFIX}/man/man8