diff options
author | wiz <wiz@pkgsrc.org> | 2001-02-08 13:46:04 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-02-08 13:46:04 +0000 |
commit | 1028496fa43210632fcb852153c153474b44ccb1 (patch) | |
tree | ac1a578c223769bc6da62b5d40b65c881631ab52 /net/tn5250 | |
parent | c84d837c4134faaf13058a7224e4b499a5fdd92e (diff) | |
download | pkgsrc-1028496fa43210632fcb852153c153474b44ccb1.tar.gz |
Use NetBSD's curses if possible. Fix based on an idea by Julian Coleman.
Diffstat (limited to 'net/tn5250')
-rw-r--r-- | net/tn5250/Makefile | 14 | ||||
-rw-r--r-- | net/tn5250/files/patch-sum | 4 | ||||
-rw-r--r-- | net/tn5250/patches/patch-aa | 17 |
3 files changed, 25 insertions, 10 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" diff --git a/net/tn5250/files/patch-sum b/net/tn5250/files/patch-sum index 5165251a2a9..c5318af88b6 100644 --- a/net/tn5250/files/patch-sum +++ b/net/tn5250/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.2 1999/09/04 01:09:11 hubertf Exp $ +$NetBSD: patch-sum,v 1.3 2001/02/08 13:46:04 wiz Exp $ -MD5 (patch-aa) = a5df297c4800d0db8806ea4c555b9bb1 +MD5 (patch-aa) = fb7db1ccb16455e17f8b793f196b797f MD5 (patch-ab) = dab222480dd3312af8a03c392fe355d9 diff --git a/net/tn5250/patches/patch-aa b/net/tn5250/patches/patch-aa index 5766ab5322f..a2c3be876dc 100644 --- a/net/tn5250/patches/patch-aa +++ b/net/tn5250/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 1999/09/04 01:09:02 hubertf Exp $ +$NetBSD: patch-aa,v 1.3 2001/02/08 13:46:04 wiz Exp $ --- cursesterm.cc.orig Mon Apr 5 18:25:45 1999 -+++ cursesterm.cc Sat Sep 4 02:32:40 1999 -@@ -19,7 +19,12 @@ ++++ cursesterm.cc +@@ -19,13 +19,23 @@ #include "config.h" #include <assert.h> #include <sys/time.h> @@ -15,3 +15,14 @@ $NetBSD: patch-aa,v 1.2 1999/09/04 01:09:02 hubertf Exp $ #include <string.h> #include <ctype.h> #include "utility.h" + #include "displaybuf.h" + #include "terminal.h" + #include "cursesterm.h" ++ ++/* workaround for NetBSD curses */ ++#ifndef A_VERTICAL ++#define A_VERTICAL 0x2000 ++#endif + + /* Mapping of 5250 colors to curses colors */ + #define A_5250_GREEN (COLOR_PAIR(COLOR_GREEN)) |