From 1028496fa43210632fcb852153c153474b44ccb1 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 8 Feb 2001 13:46:04 +0000 Subject: Use NetBSD's curses if possible. Fix based on an idea by Julian Coleman. --- net/tn5250/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'net/tn5250/Makefile') diff --git a/net/tn5250/Makefile b/net/tn5250/Makefile index 44e499876bf..1aa1d0d233d 100644 --- a/net/tn5250/Makefile +++ b/net/tn5250/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/01/12 12:33:18 dent Exp $ +# $NetBSD: Makefile,v 1.4 2001/02/08 13:46:04 wiz Exp $ # DISTNAME= tn5250-0.12.51 @@ -8,11 +8,15 @@ MASTER_SITES= ftp://ftp.blarg.net/users/mmadore/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.linux-sna.org/software/5250/ -DEPENDS+= ncurses>=4.2:../../devel/ncurses +GNU_CONFIGURE= YES +USE_CURSES= YES +REPLACE_NCURSES= ${WRKSRC}/cursesterm.cc ${WRKSRC}/configure -GNU_CONFIGURE= YES -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" +.include "../../mk/bsd.prefs.mk" -CPPFLAGS+= -I${LOCALBASE}/include +.if ${NEED_NCURSES} == "YES" +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" +CPPFLAGS+= -I${LOCALBASE}/include +.endif .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3