summaryrefslogtreecommitdiff
path: root/net/sniffit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/sniffit/Makefile')
-rw-r--r--net/sniffit/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/net/sniffit/Makefile b/net/sniffit/Makefile
index 3fdc344ef1e..f0ed6a5282c 100644
--- a/net/sniffit/Makefile
+++ b/net/sniffit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2000/01/15 18:46:33 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2001/01/08 14:59:18 wiz Exp $
#
DISTNAME= sniffit.0.3.5
@@ -9,12 +9,12 @@ MASTER_SITES= http://reptile.rug.ac.be/~coder/sniffit/files/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://reptile.rug.ac.be/~coder/sniffit/sniffit.html
-DEPENDS= ncurses>=4.2:../../devel/ncurses
-
NOT_FOR_PLATFORM= *-*-alpha # severe LP64 loss
+USE_CURSES= yes
+REPLACE_NCURSES= ${WRKSRC}/configure
+
HAS_CONFIGURE= YES
-CONFIGURE_ENV+= NCURSES_LOCATION=${LOCALBASE}/include/ncurses.h
ALL_TARGET=
do-install:
@@ -22,4 +22,12 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/sniffit.5 ${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/sniffit.8 ${PREFIX}/man/man8
+.include "../../mk/bsd.prefs.mk"
+
+.if ${NEED_NCURSES} == "YES"
+CONFIGURE_ENV+= NCURSES_LOCATION=${LOCALBASE}/include/ncurses.h
+.else
+CONFIGURE_ENV+= NCURSES_LOCATION=no
+.endif
+
.include "../../mk/bsd.pkg.mk"