diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-09-26 23:20:44 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-09-26 23:20:44 +0000 |
commit | 9017311762a1724ab8cac14a3ea34dd1a0fd7473 (patch) | |
tree | fbc6192fba35c3a3740e8947189f1cdd6da285f4 /games/enygma | |
parent | ebc9e702a2d3c50c716175864f5e2982325f4eb2 (diff) |
Notes
Diffstat (limited to 'games/enygma')
-rw-r--r-- | games/enygma/Makefile | 20 | ||||
-rw-r--r-- | games/enygma/distinfo | 3 | ||||
-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 | ||||
-rw-r--r-- | games/enygma/pkg-descr | 7 | ||||
-rw-r--r-- | games/enygma/pkg-plist | 19 |
9 files changed, 139 insertions, 0 deletions
diff --git a/games/enygma/Makefile b/games/enygma/Makefile new file mode 100644 index 000000000000..4aceb8807bde --- /dev/null +++ b/games/enygma/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: enygma +# Date created: 14 September 2008 +# Whom: Wouter Reckman <gennerate@zonnet.nl> +# +# $FreeBSD$ +# + +PORTNAME= enygma +PORTVERSION= 1.04 +CATEGORIES= games +MASTER_SITES= http://www.chiark.greenend.org.uk/~sgtatham/enigma/ +DISTNAME= enigma-${DISTVERSION} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= gennerate@zonnet.nl +COMMENT= A text-based puzzle game + +GNU_CONFIGURE= yes + +.include <bsd.port.mk> diff --git a/games/enygma/distinfo b/games/enygma/distinfo new file mode 100644 index 000000000000..8b476b59e140 --- /dev/null +++ b/games/enygma/distinfo @@ -0,0 +1,3 @@ +MD5 (enygma/enigma-1.04.tar.gz) = a54ee9ae40dae781560a3c2b1ce8f45d +SHA256 (enygma/enigma-1.04.tar.gz) = cf022a7809f6c56ce96204d97b38ad4ca2929ada75a88188e4bb989e31ef6b48 +SIZE (enygma/enigma-1.04.tar.gz) = 42526 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 diff --git a/games/enygma/pkg-descr b/games/enygma/pkg-descr new file mode 100644 index 000000000000..62068c3207a0 --- /dev/null +++ b/games/enygma/pkg-descr @@ -0,0 +1,7 @@ +Enigma is a puzzle game involving falling blocks, exploding bombs, and pushing +stuff around. It has elements of Boulderdash and elements of Sokoban, and +anybody old enough to remember XOR on the Spectrum will see large elements of +that in it. +The port and executable have been named 'enygma' to avoid a name collision. + +WWW: http://www.chiark.greenend.org.uk/~sgtatham/enigma/ diff --git a/games/enygma/pkg-plist b/games/enygma/pkg-plist new file mode 100644 index 000000000000..8d57ae377f5f --- /dev/null +++ b/games/enygma/pkg-plist @@ -0,0 +1,19 @@ +bin/enygma +%%DATADIR%%/original.set +%%DATADIR%%/original01.level +%%DATADIR%%/original02.level +%%DATADIR%%/original03.level +%%DATADIR%%/original04.level +%%DATADIR%%/original05.level +%%DATADIR%%/original06.level +%%DATADIR%%/original07.level +%%DATADIR%%/original08.level +%%DATADIR%%/original09.level +%%DATADIR%%/original10.level +%%DATADIR%%/original11.level +%%DATADIR%%/original12.level +@dirrm %%DATADIR%% +@exec mkdir -p %D/var/enygma +@exec chgrp games %D/var/enygma +@exec chmod 2770 %D/var/enygma +@dirrm var/enygma |