diff options
author | wiz <wiz@pkgsrc.org> | 2001-01-07 02:25:35 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-01-07 02:25:35 +0000 |
commit | 6589777df7767f72bc04dd1e63c2dfe5c6392200 (patch) | |
tree | 5cace4fe6c9c0b65da73324664cbc1398c1775d0 /net/ntop/Makefile | |
parent | 5c752750f76b259a2d0e010d3dd4cd892c1524d2 (diff) | |
download | pkgsrc-6589777df7767f72bc04dd1e63c2dfe5c6392200.tar.gz |
USE_CURSES instead of hardwired dependency on ncurses.
Patch by Charles Hannum.
Diffstat (limited to 'net/ntop/Makefile')
-rw-r--r-- | net/ntop/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/net/ntop/Makefile b/net/ntop/Makefile index 235a288fafa..8f0fb2f36f0 100644 --- a/net/ntop/Makefile +++ b/net/ntop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2000/11/01 21:43:59 abs Exp $ +# $NetBSD: Makefile,v 1.16 2001/01/07 02:25:35 wiz Exp $ DISTNAME= ntop-1.1 PKGNAME= ntop-1.1nb1 @@ -9,15 +9,19 @@ EXTRACT_SUFX= -src.tar.gz MAINTAINER= kim@tac.nyc.ny.us HOMEPAGE= http://www.ntop.org/ -DEPENDS+= ncurses>=4.2:../../devel/ncurses - GNU_CONFIGURE= yes +USE_CURSES= yes +REPLACE_NCURSES= ${WRKSRC}/configure ${WRKSRC}/ntop.h CONFIGURE_ARGS+= --enable-threads=no +INSTALL_TARGET= install install-man + +.include "../../mk/bsd.prefs.mk" + +.if ${NEED_NCURSES} == "YES" CPPFLAGS+= -I${LOCALBASE}/include # for ncurses.h LDFLAGS+= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" - -INSTALL_TARGET= install install-man +.endif .include "../../mk/bsd.pkg.mk" |