summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordillo <dillo>2003-10-01 20:21:40 +0000
committerdillo <dillo>2003-10-01 20:21:40 +0000
commit94cb1993c9bc5549f5f20d4e968b7a95f84ea9cc (patch)
tree22fa2ec60ff22eb775e313c5a678c117a6a28c64 /games
parent200307860643ac02616862212a6d777b95cc2846 (diff)
downloadpkgsrc-94cb1993c9bc5549f5f20d4e968b7a95f84ea9cc.tar.gz
Apply patch provided by Brett Lymn to make this work with NetBSD's curses.
Bump PKGREVISION.
Diffstat (limited to 'games')
-rw-r--r--games/level9/Makefile8
-rw-r--r--games/level9/distinfo4
-rw-r--r--games/level9/patches/patch-aa33
3 files changed, 36 insertions, 9 deletions
diff --git a/games/level9/Makefile b/games/level9/Makefile
index d84236ec661..6a799fd2a67 100644
--- a/games/level9/Makefile
+++ b/games/level9/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2003/09/28 09:13:57 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2003/10/01 20:21:40 dillo Exp $
#
DISTNAME= Level9_3.0_Source
PKGNAME= level9-3.0
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/Unix
CATEGORIES= games
MASTER_SITES= http://www.ifarchive.org/if-archive/level9/interpreters/level9/
@@ -13,8 +14,9 @@ HOMEPAGE= http://www.ifarchive.org/if-archive/level9/interpreters/level9/
COMMENT= Curses port of the Level 9 text adventure interpreter
USE_BUILDLINK2= yes
-# uses halfkey (present since 1.6M), but still doesn't work
-USE_NCURSES= yes
+# uses halfkey (present since 1.6M)
+INCOMPAT_CURSES+= NetBSD-1.4[Y-Z]* NetBSD-1.5* NetBSD-1.6 NetBSD-1.6.*
+INCOMPAT_CURSES+= NetBSD-1.6[A-L]*
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
diff --git a/games/level9/distinfo b/games/level9/distinfo
index 6c918384663..51a3ede2812 100644
--- a/games/level9/distinfo
+++ b/games/level9/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/09/17 14:13:17 dillo Exp $
+$NetBSD: distinfo,v 1.4 2003/10/01 20:21:40 dillo Exp $
SHA1 (Level9_3.0_Source.zip) = f50d0712c3ae9c3ff98bb1806bd92df50d8feec7
Size (Level9_3.0_Source.zip) = 202924 bytes
-SHA1 (patch-aa) = 2267bf7782092339fa788b9a76f03e5cd6eecf9c
+SHA1 (patch-aa) = 2fda19e85676e7eadf94d109a1ba0e02a17e9d84
diff --git a/games/level9/patches/patch-aa b/games/level9/patches/patch-aa
index e40b8185650..6e6eaca2da9 100644
--- a/games/level9/patches/patch-aa
+++ b/games/level9/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
+$NetBSD: patch-aa,v 1.2 2003/10/01 20:21:40 dillo Exp $
---- unix-curses.c.orig Wed Sep 17 20:53:54 2003
-+++ unix-curses.c Wed Sep 17 20:54:37 2003
+--- unix-curses.c.orig Sun Apr 21 21:37:00 2002
++++ unix-curses.c
@@ -10,11 +10,6 @@
*
* A few notes on this port:
@@ -26,7 +26,12 @@ $NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
* Define this as 1 to get the Emacs-type key bindings
* Ctrl-A (go to beginning of line)
* Ctrl-B (back one character)
-@@ -745,21 +735,6 @@
+@@ -741,25 +731,11 @@ int main (int argc, char *argv [])
+ char gamename [256];
+ char *envbuf;
+ L9BOOL gotgame;
++ char bp[1024];
+
/*
* Check byte sex
*/
@@ -48,3 +53,23 @@ $NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
if (argc != 2)
{
+@@ -786,8 +762,9 @@ int main (int argc, char *argv [])
+ /*
+ * Get the terminal characteristics for line width and More prompt
+ */
++ tgetent(bp, getenv("TERM"));
+ Line_width = tgetnum ("co");
+- if (Line_width == ERR)
++ if ((Line_width == -1) || (Line_width == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal width---falling back on good old"
+ " 80 columns\n\n");
+@@ -795,7 +772,7 @@ int main (int argc, char *argv [])
+ }
+
+ More_lines = tgetnum ("li");
+- if (More_lines == ERR)
++ if ((More_lines == -1) || (More_lines == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal height---guessing\n\n");
+ More_lines = 24;