aboutsummaryrefslogtreecommitdiffstats
path: root/games/fargoal/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-15 17:01:23 +0800
committerpav <pav@FreeBSD.org>2003-12-15 17:01:23 +0800
commit77ff8352cd178e6441c7bbe49ed0d9bc4685f394 (patch)
tree5503b5266dbca9dd5bb5e225bf5c76628a2a0393 /games/fargoal/files
parent7f4b39e66b6f813bda50943f6305f6f84710a524 (diff)
downloadfreebsd-ports-gnome-77ff8352cd178e6441c7bbe49ed0d9bc4685f394.tar.gz
freebsd-ports-gnome-77ff8352cd178e6441c7bbe49ed0d9bc4685f394.tar.zst
freebsd-ports-gnome-77ff8352cd178e6441c7bbe49ed0d9bc4685f394.zip
Add fargoal, a remake of the classic roguelike game "Sword of
Fargoal", created by Jeff McCord for the Commodore 64 in 1983. This remake was written for the 2003 remakes.org competition. PR: ports/60236 Submitted by: Chris Pressey <cpressey@catseye.mine.nu>
Diffstat (limited to 'games/fargoal/files')
-rw-r--r--games/fargoal/files/fargoal14
-rw-r--r--games/fargoal/files/patch-Makefile16
-rw-r--r--games/fargoal/files/patch-game.c11
-rw-r--r--games/fargoal/files/patch-main.c17
4 files changed, 58 insertions, 0 deletions
diff --git a/games/fargoal/files/fargoal b/games/fargoal/files/fargoal
new file mode 100644
index 000000000000..d84c611d0d99
--- /dev/null
+++ b/games/fargoal/files/fargoal
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -d ~/.fargoal ]; then
+ cd ~/.fargoal
+ sword
+else
+ mkdir ~/.fargoal
+ cd ~/.fargoal
+ mkdir data
+ cp -r %%FARGOAL_ROOT%%/data/* data/
+ ln -s %%FARGOAL_ROOT%%/gfx gfx
+ ln -s %%FARGOAL_ROOT%%/sfx sfx
+ sword
+fi
diff --git a/games/fargoal/files/patch-Makefile b/games/fargoal/files/patch-Makefile
new file mode 100644
index 000000000000..f1f7ce8ded87
--- /dev/null
+++ b/games/fargoal/files/patch-Makefile
@@ -0,0 +1,16 @@
+--- Makefile.orig Thu Jul 31 10:06:51 2003
++++ Makefile Sat Dec 13 15:44:52 2003
+@@ -1,8 +1,10 @@
+-CC=gcc
++CC ?= gcc
++all: ../sword
++
+ ../sword: char.o config.o credits.o game.o gfx.o main.o map.o menu.o message.o monster.o player.o save.o scroller.o spell.o
+ $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
+ include makefile.dep
+-CFLAGS = -W -Wall -O3
+-CXXFLAGS = -W -Wall -O3
++CFLAGS += -W -Wall `allegro-config --cflags` -DALLEGRO_LINUX
++CXXFLAGS += -W -Wall `allegro-config --cflags` -DALLEGRO_LINUX
+ LDFLAGS = -s
+ LDLIBS = `allegro-config --libs`
diff --git a/games/fargoal/files/patch-game.c b/games/fargoal/files/patch-game.c
new file mode 100644
index 000000000000..3cd4c996639d
--- /dev/null
+++ b/games/fargoal/files/patch-game.c
@@ -0,0 +1,11 @@
+--- game.c Thu Jul 31 10:06:51 2003
++++ game.c Mon Nov 17 09:50:58 2003
+@@ -363,7 +363,7 @@
+ try_load_sample (boom, "sfx/boom.wav");
+ try_load_sample (crash, "sfx/crash.wav");
+ try_load_sample (gold, "sfx/gold.wav");
+- try_load_sample (pit, "sfx/pit.wav");
++ try_load_sample (pit, "sfx/crash.wav"); /* pit.wav is corrupt? */
+ try_load_sample (spell, "sfx/spell.wav");
+ try_load_sample (step, "sfx/step.wav");
+ try_load_sample (attack, "sfx/attack.wav");
diff --git a/games/fargoal/files/patch-main.c b/games/fargoal/files/patch-main.c
new file mode 100644
index 000000000000..1b635f539351
--- /dev/null
+++ b/games/fargoal/files/patch-main.c
@@ -0,0 +1,17 @@
+--- main.c Thu Jul 31 10:06:51 2003
++++ main.c Mon Nov 17 09:51:26 2003
+@@ -365,12 +365,8 @@
+
+ fix_alt_tab ();
+
+- #if (ALLEGRO_SUB_VERSION == 0)
+- set_window_close_button (1);
+- set_window_close_hook (close_button);
+- #else
+- set_close_button_callback (close_button);
+- #endif
++ set_window_close_button (1);
++ set_window_close_hook (close_button);
+
+ if (colordepth == 8)
+ {