diff options
Diffstat (limited to 'games/enygma/files')
-rw-r--r-- | games/enygma/files/patch-Makefile.in | 40 | ||||
-rw-r--r-- | games/enygma/files/patch-engine.c | 11 | ||||
-rw-r--r-- | games/enygma/files/patch-main.c | 19 | ||||
-rw-r--r-- | games/enygma/files/patch-memory.c | 10 | ||||
-rw-r--r-- | games/enygma/files/patch-screen.c | 10 |
5 files changed, 90 insertions, 0 deletions
diff --git a/games/enygma/files/patch-Makefile.in b/games/enygma/files/patch-Makefile.in new file mode 100644 index 000000000000..9240278639e8 --- /dev/null +++ b/games/enygma/files/patch-Makefile.in @@ -0,0 +1,40 @@ +--- Makefile.in.orig Sun Feb 29 15:42:32 2004 ++++ Makefile.in Mon Sep 15 01:39:29 2008 +@@ -9,10 +9,12 @@ + datadir = @datadir@ + localstatedir = @localstatedir@ + ++PACKAGE_NAME = enygma ++ + CC = @CC@ + CFLAGS = @CFLAGS@ @GCCFLAGS@ -I$(srcdir) -I. \ +- -DLEVELDIR=\"@datadir@/enigma/\" \ +- -DSAVEDIR=\"@localstatedir@/enigma/\" \ ++ -DLEVELDIR=\"@datadir@/$(PACKAGE_NAME)/\" \ ++ -DSAVEDIR=\"@localstatedir@/$(PACKAGE_NAME)/\" \ + @CURSES@ + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ +@@ -32,15 +34,15 @@ + $(CC) $(LDFLAGS) -o enigma $(ENIGMA) $(LIBS) + + install: enigma +- $(INSTALL_PROGRAM) enigma $(bindir)/enigma +- -chown root.games $(bindir)/enigma && chmod 2755 $(bindir)/enigma +- #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/enigma.1 +- mkdir -p $(datadir)/enigma ++ $(INSTALL_PROGRAM) enigma $(bindir)/$(PACKAGE_NAME) ++ -chown root:games $(bindir)/$(PACKAGE_NAME) && chmod 2755 $(bindir)/$(PACKAGE_NAME) ++ #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/$(PACKAGE_NAME).1 ++ mkdir -p $(datadir)/$(PACKAGE_NAME) + for i in $(srcdir)/levels/*.set $(srcdir)/levels/*.level; do \ +- $(INSTALL_DATA) $$i $(datadir)/enigma; \ ++ $(INSTALL_DATA) $$i $(datadir)/$(PACKAGE_NAME); \ + done +- mkdir -p $(localstatedir)/enigma +- -chown root.games $(localstatedir)/enigma && chmod 2770 $(localstatedir)/enigma ++ mkdir -p $(localstatedir)/$(PACKAGE_NAME) ++ -chown root:games $(localstatedir)/$(PACKAGE_NAME) && chmod 2770 $(localstatedir)/$(PACKAGE_NAME) + + clean: + rm -f *.o enigma diff --git a/games/enygma/files/patch-engine.c b/games/enygma/files/patch-engine.c new file mode 100644 index 000000000000..96008405059c --- /dev/null +++ b/games/enygma/files/patch-engine.c @@ -0,0 +1,11 @@ +--- engine.c.orig Sun Sep 14 23:23:42 2008 ++++ engine.c Sun Sep 14 22:06:32 2008 +@@ -181,7 +181,7 @@ + * process teleporters + */ + if (i == '#') { +- int x, y; ++ int x, y = 0; + + /* + * First find the other teleporter. diff --git a/games/enygma/files/patch-main.c b/games/enygma/files/patch-main.c new file mode 100644 index 000000000000..435a380525ea --- /dev/null +++ b/games/enygma/files/patch-main.c @@ -0,0 +1,19 @@ +--- main.c.orig Sun Sep 14 23:23:51 2008 ++++ main.c Sun Sep 14 22:13:48 2008 +@@ -11,6 +11,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + + #include "enigma.h" + +@@ -131,7 +132,7 @@ + char *fname; + char *sequence; + gamestate **movie; +- int nframes; ++ int nframes = 0; + int frame; + char msg[80]; + int km; diff --git a/games/enygma/files/patch-memory.c b/games/enygma/files/patch-memory.c new file mode 100644 index 000000000000..edcc158c6d9c --- /dev/null +++ b/games/enygma/files/patch-memory.c @@ -0,0 +1,10 @@ +--- memory.c.orig Sun Sep 14 23:24:09 2008 ++++ memory.c Sun Sep 14 21:58:40 2008 +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <assert.h> ++#include <string.h> + + #include "enigma.h" + diff --git a/games/enygma/files/patch-screen.c b/games/enygma/files/patch-screen.c new file mode 100644 index 000000000000..64bea67fbd54 --- /dev/null +++ b/games/enygma/files/patch-screen.c @@ -0,0 +1,10 @@ +--- screen.c.orig Sun Sep 14 23:24:17 2008 ++++ screen.c Sun Sep 14 22:01:21 2008 +@@ -13,6 +13,7 @@ + */ + + #include <stdio.h> ++#include <string.h> + #ifdef CURSES_HDR + # include CURSES_HDR + #else |