summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-05-15 13:28:21 +0000
committerobache <obache@pkgsrc.org>2007-05-15 13:28:21 +0000
commit39980d3962e50d5ae5f28f687de88fbff58c9e6d (patch)
tree1db46f226f72ac709c1123ff57f038d64fc93068 /games
parenta39d6ccf84840b59cdc2e93863720d651b72eb90 (diff)
downloadpkgsrc-39980d3962e50d5ae5f28f687de88fbff58c9e6d.tar.gz
Add workaround for no good definision of COLOR_PAIR on NetBSD<=3.*.
Diffstat (limited to 'games')
-rw-r--r--games/greed/distinfo4
-rw-r--r--games/greed/patches/patch-ab11
2 files changed, 12 insertions, 3 deletions
diff --git a/games/greed/distinfo b/games/greed/distinfo
index 3f86893fc2d..b9b4daa7fbc 100644
--- a/games/greed/distinfo
+++ b/games/greed/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2007/02/27 07:50:48 wiz Exp $
+$NetBSD: distinfo,v 1.3 2007/05/15 13:28:21 obache Exp $
SHA1 (greed-3.4.tar.gz) = d70bd592378531d6726dfe00d3627e13b9dd9cce
RMD160 (greed-3.4.tar.gz) = 13c432c030d333d0b6722263067dfab2fb2cf26e
Size (greed-3.4.tar.gz) = 11463 bytes
SHA1 (patch-aa) = 53acf3944f5e59dc7862196168aeb5c5882cae89
-SHA1 (patch-ab) = 66c1a503818f5852432079dd45528d90ff2d23a1
+SHA1 (patch-ab) = 7c1e486d202d46af857da983d90e72478c08ef20
diff --git a/games/greed/patches/patch-ab b/games/greed/patches/patch-ab
index 3ce4db9c691..c86d0854ddd 100644
--- a/games/greed/patches/patch-ab
+++ b/games/greed/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2007/05/15 13:28:22 obache Exp $
--- greed.c.orig 2002-07-30 22:03:43.000000000 +0000
+++ greed.c
@@ -22,3 +22,12 @@ $NetBSD: patch-ab,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
int attribs[9];
#ifdef A_COLOR
char *colors;
+@@ -276,7 +277,7 @@ char *argv[];
+ init_pair(cp-colors+1,
+ strchr(cnames, tolower(*cp))-cnames,
+ COLOR_BLACK);
+- attribs[cp-colors]=COLOR_PAIR(cp-colors+1);
++ attribs[cp-colors]=COLOR_PAIR((cp-colors+1));
+ if (isupper(*cp))
+ attribs[cp-colors] |= A_BOLD;
+ }