diff options
author | pav <pav@FreeBSD.org> | 2003-12-15 17:01:23 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-15 17:01:23 +0800 |
commit | 77ff8352cd178e6441c7bbe49ed0d9bc4685f394 (patch) | |
tree | 5503b5266dbca9dd5bb5e225bf5c76628a2a0393 /games/fargoal | |
parent | 7f4b39e66b6f813bda50943f6305f6f84710a524 (diff) | |
download | freebsd-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')
-rw-r--r-- | games/fargoal/Makefile | 47 | ||||
-rw-r--r-- | games/fargoal/distinfo | 1 | ||||
-rw-r--r-- | games/fargoal/files/fargoal | 14 | ||||
-rw-r--r-- | games/fargoal/files/patch-Makefile | 16 | ||||
-rw-r--r-- | games/fargoal/files/patch-game.c | 11 | ||||
-rw-r--r-- | games/fargoal/files/patch-main.c | 17 | ||||
-rw-r--r-- | games/fargoal/pkg-descr | 12 | ||||
-rw-r--r-- | games/fargoal/pkg-plist | 53 |
8 files changed, 171 insertions, 0 deletions
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 |