diff options
author | rillig <rillig@pkgsrc.org> | 2006-09-14 21:18:44 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-09-14 21:18:44 +0000 |
commit | 2d52a2eeb7de16513253f416f8eac423e9d3bf1a (patch) | |
tree | f8bc52766cdf56ffb52a8046850058b198871dd7 /games/bastet/patches | |
parent | ba5f8464658bfd2fa730862aad073d41af9f543d (diff) | |
download | pkgsrc-2d52a2eeb7de16513253f416f8eac423e9d3bf1a.tar.gz |
Ported bastet to Solaris.
Diffstat (limited to 'games/bastet/patches')
-rw-r--r-- | games/bastet/patches/patch-aa | 16 | ||||
-rw-r--r-- | games/bastet/patches/patch-ab | 5 | ||||
-rw-r--r-- | games/bastet/patches/patch-ac | 15 |
3 files changed, 33 insertions, 3 deletions
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 $@ + |