summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-02-23 14:01:20 +0000
committerdrochner <drochner@pkgsrc.org>2007-02-23 14:01:20 +0000
commit3177281f93b2e412e03361eea1fd92255301fa48 (patch)
treed994b3d24c589576a4e20c80bdc234421e2f98c2 /games
parentc0aa5a845adfea22c9ad95de0d9b78661186bdc1 (diff)
downloadpkgsrc-3177281f93b2e412e03361eea1fd92255301fa48.tar.gz
fix for newer gcc which don't know -fwritable-strings
Diffstat (limited to 'games')
-rw-r--r--games/nagi/distinfo5
-rw-r--r--games/nagi/patches/patch-an24
-rw-r--r--games/nagi/patches/patch-ao13
-rw-r--r--games/nagi/patches/patch-ap13
4 files changed, 54 insertions, 1 deletions
diff --git a/games/nagi/distinfo b/games/nagi/distinfo
index 1d08b55beb4..66fec691a42 100644
--- a/games/nagi/distinfo
+++ b/games/nagi/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/03/28 21:51:53 joerg Exp $
+$NetBSD: distinfo,v 1.4 2007/02/23 14:01:20 drochner Exp $
SHA1 (nagi_src_-_2002-11-14.tar.gz) = 3afeae70e78dd36a3d8b114212992318a8182372
RMD160 (nagi_src_-_2002-11-14.tar.gz) = 0dbbb6895ba067d91d5afd3ba11c8f82aacf1488
@@ -16,3 +16,6 @@ SHA1 (patch-aj) = 1e11131742814af3af1bfa2a3159712d1b0c12e7
SHA1 (patch-ak) = 50a507e37ce0d347c624f25045161ce9bf0bc7c8
SHA1 (patch-al) = 73f029bd9bce9860fdb21508c724a9ff2eda6a84
SHA1 (patch-am) = 291aea5cdc08121061004bd4bf982cd7eb44f9af
+SHA1 (patch-an) = 37363bc784c77889520420b8464094cee36758c1
+SHA1 (patch-ao) = 3bf0b7e698d14c9e2bce15b92a5c60a1d1c520ed
+SHA1 (patch-ap) = 4088c8aed0cd8eaf5d8994dacfcec963909d5b54
diff --git a/games/nagi/patches/patch-an b/games/nagi/patches/patch-an
new file mode 100644
index 00000000000..804a854c536
--- /dev/null
+++ b/games/nagi/patches/patch-an
@@ -0,0 +1,24 @@
+$NetBSD: patch-an,v 1.1 2007/02/23 14:01:20 drochner Exp $
+
+--- Makefile.common.orig 2007-02-23 13:46:16.000000000 +0100
++++ Makefile.common
+@@ -53,15 +53,15 @@ ui/menu.c ui/mouse.c ui/list_box.c
+
+ OBJ = $(SRC:.c=.o)
+
+-CC = gcc
++#CC = gcc
+
+ #CFLAGS += -g
+ #CFLAGS += -pg
+-CFLAGS += -O2
++#CFLAGS += -O2
+ #CFLAGS += -finline-functions
+-CFLAGS += -fwritable-strings
++#CFLAGS += -fwritable-strings
+
+ # Warnings
+-CFLAGS += -Wall -Winline -Wshadow -Wstrict-prototypes
++#CFLAGS += -Wall -Winline -Wshadow -Wstrict-prototypes
+
+ #CFLAGS += -Werror
diff --git a/games/nagi/patches/patch-ao b/games/nagi/patches/patch-ao
new file mode 100644
index 00000000000..089f4e7ac6c
--- /dev/null
+++ b/games/nagi/patches/patch-ao
@@ -0,0 +1,13 @@
+$NetBSD: patch-ao,v 1.1 2007/02/23 14:01:20 drochner Exp $
+
+--- sys/memory.c.orig 2007-02-23 13:48:29.000000000 +0100
++++ sys/memory.c
+@@ -84,7 +84,7 @@ void *agi_malloc(u16 size)
+ }
+
+ return_ptr = mem_ptr;
+- (u8 *)mem_ptr += size;
++ mem_ptr = (u8 *)mem_ptr + size;
+ update_var8();
+ if (mem_ptr > mem_max)
+ mem_max = mem_ptr;
diff --git a/games/nagi/patches/patch-ap b/games/nagi/patches/patch-ap
new file mode 100644
index 00000000000..424ddb2339e
--- /dev/null
+++ b/games/nagi/patches/patch-ap
@@ -0,0 +1,13 @@
+$NetBSD: patch-ap,v 1.1 2007/02/23 14:01:20 drochner Exp $
+
+--- sys/agi_file.c.orig 2007-02-23 14:15:26.000000000 +0100
++++ sys/agi_file.c
+@@ -129,7 +129,7 @@ FILE *fopen_nocase(u8 *name)
+ FILE *ret;
+
+ dir = opendir(".");
+- string_lower(name);
++ string_lower(strdupa(name));
+
+ while((fileent = readdir(dir))) {
+ char *testname;