summaryrefslogtreecommitdiff
path: root/net/tn5250/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-02-08 13:46:04 +0000
committerwiz <wiz@pkgsrc.org>2001-02-08 13:46:04 +0000
commit1028496fa43210632fcb852153c153474b44ccb1 (patch)
treeac1a578c223769bc6da62b5d40b65c881631ab52 /net/tn5250/Makefile
parentc84d837c4134faaf13058a7224e4b499a5fdd92e (diff)
downloadpkgsrc-1028496fa43210632fcb852153c153474b44ccb1.tar.gz
Use NetBSD's curses if possible. Fix based on an idea by Julian Coleman.
Diffstat (limited to 'net/tn5250/Makefile')
-rw-r--r--net/tn5250/Makefile14
1 files changed, 9 insertions, 5 deletions
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"