aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-15 09:01:23 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-15 09:01:23 +0000
commit7558afbf3f4f09bbdc5b5ed077bb5d34f5279a09 (patch)
tree1af3a79fdc009cc4352ebee5717c1267bf88bc1e /games
parent65bb0d1129721f3ac55b4550413f48f4b3d04fec (diff)
downloadports-7558afbf3f4f09bbdc5b5ed077bb5d34f5279a09.tar.gz
ports-7558afbf3f4f09bbdc5b5ed077bb5d34f5279a09.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/fargoal/Makefile47
-rw-r--r--games/fargoal/distinfo1
-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
-rw-r--r--games/fargoal/pkg-descr12
-rw-r--r--games/fargoal/pkg-plist53
9 files changed, 172 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 6be7b933806b..3bd2198bf7eb 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -104,6 +104,7 @@
SUBDIR += exult
SUBDIR += falconseye
SUBDIR += farblazer
+ SUBDIR += fargoal
SUBDIR += fgkicker
SUBDIR += fkiss
SUBDIR += flightgear
diff --git a/games/fargoal/Makefile b/games/fargoal/Makefile
new file mode 100644
index 000000000000..709d4919fa1c
--- /dev/null
+++ b/games/fargoal/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: fargoal
+# Date Created: 13 December 2003
+# Whom: chris_pressey@yahoo.ca
+#
+# $FreeBSD$
+#
+
+PORTNAME= fargoal
+PORTVERSION= 20030731b
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= squidfighter
+DISTNAME= ${PORTNAME}${PORTVERSION}
+
+MAINTAINER= chris_pressey@yahoo.ca
+COMMENT= Remake of classic roguelike game "Sword of Fargoal"
+
+LIB_DEPENDS= alleg.41:${PORTSDIR}/devel/allegro
+
+WRKSRC= ${WRKDIR}/fargoal/src
+USE_X_PREFIX= yes
+USE_ZIP= yes
+USE_GMAKE= yes
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/fargoal
+ ${MKDIR} ${PREFIX}/share/fargoal/data
+ @${INSTALL_DATA} ${WRKSRC}/../data/sof.cfg ${PREFIX}/share/fargoal/data/sof.cfg
+ ${MKDIR} ${PREFIX}/share/fargoal/gfx
+.for i in black.bmp chars.bmp chars_ep.bmp dmz_chars.bmp dmz_layout.bmp \
+ dmz_tiles.bmp layout.bmp layout_ep.bmp originalchars.bmp \
+ originalset.bmp sword.dat tiles.bmp tiles_ep.bmp
+ @${INSTALL_DATA} ${WRKSRC}/../gfx/${i} ${PREFIX}/share/fargoal/gfx/${i}
+.endfor
+ ${MKDIR} ${PREFIX}/share/fargoal/sfx
+.for i in attack beacon boom chop clang claw climb clink crash crunch \
+ ding down fight gnarl gold intro item levelup move pit potion \
+ sacrifice shred shriek slain slash spell step teleport thump \
+ ugh up victory
+ @${INSTALL_DATA} ${WRKSRC}/../sfx/${i}.wav ${PREFIX}/share/fargoal/sfx/${i}.wav
+.endfor
+ @${INSTALL_PROGRAM} ${WRKSRC}/../sword ${PREFIX}/bin/sword
+ @${SED} s^%%FARGOAL_ROOT%%^${PREFIX}/share/fargoal^g \
+ < ${FILESDIR}/fargoal > ${WRKDIR}/fargoal/fargoal
+ @${INSTALL_SCRIPT} ${WRKDIR}/fargoal/fargoal ${PREFIX}/bin/fargoal
+
+.include <bsd.port.mk>
diff --git a/games/fargoal/distinfo b/games/fargoal/distinfo
new file mode 100644
index 000000000000..b0d12b7cdbaa
--- /dev/null
+++ b/games/fargoal/distinfo
@@ -0,0 +1 @@
+MD5 (fargoal20030731b.zip) = 9b24008b30b2c4b075998bd082de9459
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)
+ {
diff --git a/games/fargoal/pkg-descr b/games/fargoal/pkg-descr
new file mode 100644
index 000000000000..744a1395e114
--- /dev/null
+++ b/games/fargoal/pkg-descr
@@ -0,0 +1,12 @@
+This game is 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.
+
+Note: this port installs both the Sword of Fargoal executable,
+'sword', and a wrapper script, 'fargoal', which allows each
+user to keep their own savefiles in their ~/.fargoal directory.
+
+WWW: http://squidfighter.sourceforge.net/fargoal/
+
+-Chris
+chris_pressey@yahoo.ca
diff --git a/games/fargoal/pkg-plist b/games/fargoal/pkg-plist
new file mode 100644
index 000000000000..4d7a15c3ffdb
--- /dev/null
+++ b/games/fargoal/pkg-plist
@@ -0,0 +1,53 @@
+bin/fargoal
+bin/sword
+share/fargoal/data/sof.cfg
+share/fargoal/gfx/black.bmp
+share/fargoal/gfx/chars.bmp
+share/fargoal/gfx/chars_ep.bmp
+share/fargoal/gfx/dmz_chars.bmp
+share/fargoal/gfx/dmz_layout.bmp
+share/fargoal/gfx/dmz_tiles.bmp
+share/fargoal/gfx/layout.bmp
+share/fargoal/gfx/layout_ep.bmp
+share/fargoal/gfx/originalchars.bmp
+share/fargoal/gfx/originalset.bmp
+share/fargoal/gfx/sword.dat
+share/fargoal/gfx/tiles.bmp
+share/fargoal/gfx/tiles_ep.bmp
+share/fargoal/sfx/attack.wav
+share/fargoal/sfx/beacon.wav
+share/fargoal/sfx/boom.wav
+share/fargoal/sfx/chop.wav
+share/fargoal/sfx/clang.wav
+share/fargoal/sfx/claw.wav
+share/fargoal/sfx/climb.wav
+share/fargoal/sfx/clink.wav
+share/fargoal/sfx/crash.wav
+share/fargoal/sfx/crunch.wav
+share/fargoal/sfx/ding.wav
+share/fargoal/sfx/down.wav
+share/fargoal/sfx/fight.wav
+share/fargoal/sfx/gnarl.wav
+share/fargoal/sfx/gold.wav
+share/fargoal/sfx/intro.wav
+share/fargoal/sfx/item.wav
+share/fargoal/sfx/levelup.wav
+share/fargoal/sfx/move.wav
+share/fargoal/sfx/pit.wav
+share/fargoal/sfx/potion.wav
+share/fargoal/sfx/sacrifice.wav
+share/fargoal/sfx/shred.wav
+share/fargoal/sfx/shriek.wav
+share/fargoal/sfx/slain.wav
+share/fargoal/sfx/slash.wav
+share/fargoal/sfx/spell.wav
+share/fargoal/sfx/step.wav
+share/fargoal/sfx/teleport.wav
+share/fargoal/sfx/thump.wav
+share/fargoal/sfx/ugh.wav
+share/fargoal/sfx/up.wav
+share/fargoal/sfx/victory.wav
+@dirrm share/fargoal/data
+@dirrm share/fargoal/gfx
+@dirrm share/fargoal/sfx
+@dirrm share/fargoal