ports/60236: New port: games/fargoal (Remake of classic roguelike)
Chris Pressey
cpressey at catseye.mine.nu
Sun Dec 14 21:10:25 UTC 2003
>Number: 60236
>Category: ports
>Synopsis: New port: games/fargoal (Remake of classic roguelike)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 14 13:10:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Chris Pressey
>Release: FreeBSD 4.9-STABLE i386
>Organization:
Cat's Eye Technologies
>Environment:
System: FreeBSD catbus.biscuit.boo 4.9-STABLE FreeBSD 4.9-STABLE #2: Thu Nov 20 15:10:34 PST 2003 root at catbus.biscuit.boo:/usr/obj/usr/src/sys/CATBUS i386
>Description:
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 at yahoo.ca
>How-To-Repeat:
>Fix:
--- fargoal.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# fargoal
# fargoal/files
# fargoal/files/patch-Makefile
# fargoal/files/patch-game.c
# fargoal/files/patch-main.c
# fargoal/files/fargoal
# fargoal/Makefile
# fargoal/distinfo
# fargoal/pkg-plist
# fargoal/pkg-descr
#
echo c - fargoal
mkdir -p fargoal > /dev/null 2>&1
echo c - fargoal/files
mkdir -p fargoal/files > /dev/null 2>&1
echo x - fargoal/files/patch-Makefile
sed 's/^X//' >fargoal/files/patch-Makefile << 'END-of-fargoal/files/patch-Makefile'
X--- Makefile.orig Thu Jul 31 10:06:51 2003
X+++ Makefile Sat Dec 13 15:44:52 2003
X@@ -1,8 +1,10 @@
X-CC=gcc
X+CC ?= gcc
X+all: ../sword
X+
X ../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
X $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
X include makefile.dep
X-CFLAGS = -W -Wall -O3
X-CXXFLAGS = -W -Wall -O3
X+CFLAGS += -W -Wall -O3 -DALLEGRO_LINUX
X+CXXFLAGS += -W -Wall -O3 -DALLEGRO_LINUX
X LDFLAGS = -s
X LDLIBS = `allegro-config --libs`
END-of-fargoal/files/patch-Makefile
echo x - fargoal/files/patch-game.c
sed 's/^X//' >fargoal/files/patch-game.c << 'END-of-fargoal/files/patch-game.c'
X--- game.c Thu Jul 31 10:06:51 2003
X+++ game.c Mon Nov 17 09:50:58 2003
X@@ -363,7 +363,7 @@
X try_load_sample (boom, "sfx/boom.wav");
X try_load_sample (crash, "sfx/crash.wav");
X try_load_sample (gold, "sfx/gold.wav");
X- try_load_sample (pit, "sfx/pit.wav");
X+ try_load_sample (pit, "sfx/crash.wav"); /* pit.wav is corrupt? */
X try_load_sample (spell, "sfx/spell.wav");
X try_load_sample (step, "sfx/step.wav");
X try_load_sample (attack, "sfx/attack.wav");
END-of-fargoal/files/patch-game.c
echo x - fargoal/files/patch-main.c
sed 's/^X//' >fargoal/files/patch-main.c << 'END-of-fargoal/files/patch-main.c'
X--- main.c Thu Jul 31 10:06:51 2003
X+++ main.c Mon Nov 17 09:51:26 2003
X@@ -365,12 +365,8 @@
X
X fix_alt_tab ();
X
X- #if (ALLEGRO_SUB_VERSION == 0)
X- set_window_close_button (1);
X- set_window_close_hook (close_button);
X- #else
X- set_close_button_callback (close_button);
X- #endif
X+ set_window_close_button (1);
X+ set_window_close_hook (close_button);
X
X if (colordepth == 8)
X {
END-of-fargoal/files/patch-main.c
echo x - fargoal/files/fargoal
sed 's/^X//' >fargoal/files/fargoal << 'END-of-fargoal/files/fargoal'
X#!/bin/sh
X
Xif [ -d ~/.fargoal ]; then
X cd ~/.fargoal
X sword
Xelse
X mkdir ~/.fargoal
X cd ~/.fargoal
X mkdir data
X cp -r %%FARGOAL_ROOT%%/data/* data/
X ln -s %%FARGOAL_ROOT%%/gfx gfx
X ln -s %%FARGOAL_ROOT%%/sfx sfx
X sword
Xfi
END-of-fargoal/files/fargoal
echo x - fargoal/Makefile
sed 's/^X//' >fargoal/Makefile << 'END-of-fargoal/Makefile'
X# New ports collection makefile for: fargoal
X# Date Created: 13 December 2003
X# Whom: chris_pressey at yahoo.ca
X#
X# $FreeBSD$
X#
X
XPORTNAME= fargoal
XPORTVERSION= 20030731b
XCATEGORIES= games
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= squidfighter
XDISTNAME= ${PORTNAME}${PORTVERSION}
X
XMAINTAINER= chris_pressey at yahoo.ca
XCOMMENT= Remake of classic roguelike game "Sword of Fargoal"
X
XBUILD_DEPENDS= ${LOCALBASE}/bin/allegro-config:${PORTSDIR}/devel/allegro
XLIB_DEPENDS= alleg.41:${PORTSDIR}/devel/allegro
X
XWRKSRC= ${WRKDIR}/fargoal/src
XUSE_ZIP= yes
XUSE_GMAKE= yes
X
Xdo-install:
X ${MKDIR} ${PREFIX}/share/fargoal
X ${MKDIR} ${PREFIX}/share/fargoal/data
X @${INSTALL_DATA} ${WRKSRC}/../data/sof.cfg ${PREFIX}/share/fargoal/data/sof.cfg
X ${MKDIR} ${PREFIX}/share/fargoal/gfx
X.for i in black.bmp chars.bmp chars_ep.bmp dmz_chars.bmp dmz_layout.bmp \
X dmz_tiles.bmp layout.bmp layout_ep.bmp originalchars.bmp \
X originalset.bmp sword.dat tiles.bmp tiles_ep.bmp
X @${INSTALL_DATA} ${WRKSRC}/../gfx/${i} ${PREFIX}/share/fargoal/gfx/${i}
X.endfor
X ${MKDIR} ${PREFIX}/share/fargoal/sfx
X.for i in attack beacon boom chop clang claw climb clink crash crunch \
X ding down fight gnarl gold intro item levelup move pit potion \
X sacrifice shred shriek slain slash spell step teleport thump \
X ugh up victory
X @${INSTALL_DATA} ${WRKSRC}/../sfx/${i}.wav ${PREFIX}/share/fargoal/sfx/${i}.wav
X.endfor
X @${INSTALL_PROGRAM} ${WRKSRC}/../sword ${PREFIX}/bin/sword
X @${SED} s^%%FARGOAL_ROOT%%^${PREFIX}/share/fargoal^g \
X < ${FILESDIR}/fargoal > ${WRKDIR}/fargoal/fargoal
X @${INSTALL_SCRIPT} ${WRKDIR}/fargoal/fargoal ${PREFIX}/bin/fargoal
X
X.include <bsd.port.mk>
END-of-fargoal/Makefile
echo x - fargoal/distinfo
sed 's/^X//' >fargoal/distinfo << 'END-of-fargoal/distinfo'
XMD5 (fargoal20030731b.zip) = 9b24008b30b2c4b075998bd082de9459
END-of-fargoal/distinfo
echo x - fargoal/pkg-plist
sed 's/^X//' >fargoal/pkg-plist << 'END-of-fargoal/pkg-plist'
Xbin/fargoal
Xbin/sword
Xshare/fargoal/data/sof.cfg
Xshare/fargoal/gfx/black.bmp
Xshare/fargoal/gfx/chars.bmp
Xshare/fargoal/gfx/chars_ep.bmp
Xshare/fargoal/gfx/dmz_chars.bmp
Xshare/fargoal/gfx/dmz_layout.bmp
Xshare/fargoal/gfx/dmz_tiles.bmp
Xshare/fargoal/gfx/layout.bmp
Xshare/fargoal/gfx/layout_ep.bmp
Xshare/fargoal/gfx/originalchars.bmp
Xshare/fargoal/gfx/originalset.bmp
Xshare/fargoal/gfx/sword.dat
Xshare/fargoal/gfx/tiles.bmp
Xshare/fargoal/gfx/tiles_ep.bmp
Xshare/fargoal/sfx/attack.wav
Xshare/fargoal/sfx/beacon.wav
Xshare/fargoal/sfx/boom.wav
Xshare/fargoal/sfx/chop.wav
Xshare/fargoal/sfx/clang.wav
Xshare/fargoal/sfx/claw.wav
Xshare/fargoal/sfx/climb.wav
Xshare/fargoal/sfx/clink.wav
Xshare/fargoal/sfx/crash.wav
Xshare/fargoal/sfx/crunch.wav
Xshare/fargoal/sfx/ding.wav
Xshare/fargoal/sfx/down.wav
Xshare/fargoal/sfx/fight.wav
Xshare/fargoal/sfx/gnarl.wav
Xshare/fargoal/sfx/gold.wav
Xshare/fargoal/sfx/intro.wav
Xshare/fargoal/sfx/item.wav
Xshare/fargoal/sfx/levelup.wav
Xshare/fargoal/sfx/move.wav
Xshare/fargoal/sfx/pit.wav
Xshare/fargoal/sfx/potion.wav
Xshare/fargoal/sfx/sacrifice.wav
Xshare/fargoal/sfx/shred.wav
Xshare/fargoal/sfx/shriek.wav
Xshare/fargoal/sfx/slain.wav
Xshare/fargoal/sfx/slash.wav
Xshare/fargoal/sfx/spell.wav
Xshare/fargoal/sfx/step.wav
Xshare/fargoal/sfx/teleport.wav
Xshare/fargoal/sfx/thump.wav
Xshare/fargoal/sfx/ugh.wav
Xshare/fargoal/sfx/up.wav
Xshare/fargoal/sfx/victory.wav
X at dirrm share/fargoal/data
X at dirrm share/fargoal/gfx
X at dirrm share/fargoal/sfx
X at dirrm share/fargoal
END-of-fargoal/pkg-plist
echo x - fargoal/pkg-descr
sed 's/^X//' >fargoal/pkg-descr << 'END-of-fargoal/pkg-descr'
XThis game is a remake of the classic roguelike game "Sword of
XFargoal", created by Jeff McCord for the Commodore 64 in 1983.
XThis remake was written for the 2003 remakes.org competition.
X
XNote: this port installs both the Sword of Fargoal executable,
X'sword', and a wrapper script, 'fargoal', which allows each
Xuser to keep their own savefiles in their ~/.fargoal directory.
X
XWWW: http://squidfighter.sourceforge.net/fargoal/
X
X-Chris
Xchris_pressey at yahoo.ca
END-of-fargoal/pkg-descr
exit
--- fargoal.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list