summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig>2006-09-14 21:18:44 +0000
committerrillig <rillig>2006-09-14 21:18:44 +0000
commit56d993759b3d0319e38dc9bff30cd7cad5ea3617 (patch)
treef8bc52766cdf56ffb52a8046850058b198871dd7 /games
parentd9bebbf3a357bf2d0b2f814af98fc31ac576bd1b (diff)
downloadpkgsrc-56d993759b3d0319e38dc9bff30cd7cad5ea3617.tar.gz
Ported bastet to Solaris.
Diffstat (limited to 'games')
-rw-r--r--games/bastet/distinfo7
-rw-r--r--games/bastet/patches/patch-aa16
-rw-r--r--games/bastet/patches/patch-ab5
-rw-r--r--games/bastet/patches/patch-ac15
4 files changed, 37 insertions, 6 deletions
diff --git a/games/bastet/distinfo b/games/bastet/distinfo
index 92d4ac8c18b..1715df7969a 100644
--- a/games/bastet/distinfo
+++ b/games/bastet/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: distinfo,v 1.2 2006/09/14 21:18:44 rillig Exp $
SHA1 (bastet-0.41.tgz) = 644a0f76adedef84946159520c1639ff0c6c47ec
RMD160 (bastet-0.41.tgz) = 00801881e8ee5d42f91fe5f231d3151606032851
Size (bastet-0.41.tgz) = 24195 bytes
-SHA1 (patch-aa) = 70896f37c9a05af877ab0f5f31a17a51f0bfe2f1
-SHA1 (patch-ab) = 8d388877f15291c3e0e071b36d88c50558cbc559
+SHA1 (patch-aa) = 249ef96a5324e46f439767226fcfc8c887094b85
+SHA1 (patch-ab) = ce2a671e0582fc227bac442186c9f8c1621db278
+SHA1 (patch-ac) = d59496b8b4531f2efd79dcf9614243f1b3ec829a
diff --git a/games/bastet/patches/patch-aa b/games/bastet/patches/patch-aa
index 29c70b2ed03..4a45bc344f5 100644
--- a/games/bastet/patches/patch-aa
+++ b/games/bastet/patches/patch-aa
@@ -1,7 +1,10 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: patch-aa,v 1.2 2006/09/14 21:18:44 rillig Exp $
+
+SunPro does not like non-static inline functions. BSD-based operating
+systems have <termios.h> instead of <termio.h>.
--- bast.c.orig 2004-10-15 23:58:52.000000000 +0200
-+++ bast.c 2006-09-14 15:46:12.000000000 +0200
++++ bast.c 2006-09-14 23:14:36.540746472 +0200
@@ -1,7 +1,11 @@
#include <stdlib.h>
#include <stdio.h>
@@ -14,3 +17,12 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
#include <assert.h>
#include <unistd.h>
#include <string.h>
+@@ -39,7 +43,7 @@ void bast_clear()
+ }
+
+
+-inline unsigned char *wyx2pointer(char *well, int y, int x)
++static inline unsigned char *wyx2pointer(char *well, int y, int x)
+ {
+ return well + (y * WELL_WIDTH) + x;
+ }
diff --git a/games/bastet/patches/patch-ab b/games/bastet/patches/patch-ab
index c79d04fa2ad..5b4721be842 100644
--- a/games/bastet/patches/patch-ab
+++ b/games/bastet/patches/patch-ab
@@ -1,4 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: patch-ab,v 1.2 2006/09/14 21:18:44 rillig Exp $
+
+delay[] is used in usleep, which only accepts numbers smaller than
+1_000_000.
--- game.c.orig 2004-10-15 23:58:52.000000000 +0200
+++ game.c 2006-09-14 15:46:25.000000000 +0200
diff --git a/games/bastet/patches/patch-ac b/games/bastet/patches/patch-ac
new file mode 100644
index 00000000000..596702e2494
--- /dev/null
+++ b/games/bastet/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2006/09/14 21:18:44 rillig Exp $
+
+For one-time building, the dependencies are not needed.
+
+--- Makefile.orig 2004-10-19 19:54:58.000000000 +0200
++++ Makefile 2006-09-14 23:12:00.064244064 +0200
+@@ -26,8 +26,6 @@ $(EXNAME) : $(SOURCES:.c=.o)
+ | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
+ [ -s $@ ] || rm -f $@
+
+-include $(SOURCES:.c=.d)
+-
+ %.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+