From b659c3fd3a6d9ccd470662933b05c3ffb8498c65 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 8 Jan 2001 14:59:18 +0000 Subject: USE_CURSES instead of DEPENDS on ncurses. --- net/sniffit/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'net/sniffit/Makefile') 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" -- cgit v1.2.3