aboutsummaryrefslogtreecommitdiff
path: root/games/enygma/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-09-26 23:20:44 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-09-26 23:20:44 +0000
commit9017311762a1724ab8cac14a3ea34dd1a0fd7473 (patch)
treefbc6192fba35c3a3740e8947189f1cdd6da285f4 /games/enygma/files
parentebc9e702a2d3c50c716175864f5e2982325f4eb2 (diff)
downloadports-9017311762a1724ab8cac14a3ea34dd1a0fd7473.tar.gz
ports-9017311762a1724ab8cac14a3ea34dd1a0fd7473.zip
Notes
Diffstat (limited to 'games/enygma/files')
-rw-r--r--games/enygma/files/patch-Makefile.in40
-rw-r--r--games/enygma/files/patch-engine.c11
-rw-r--r--games/enygma/files/patch-main.c19
-rw-r--r--games/enygma/files/patch-memory.c10
-rw-r--r--games/enygma/files/patch-screen.c10
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