ports/84925: [NEW PORT] games/galaxyhack - AI script based strategy game

Alejandro Pulver alejandro at varnet.biz
Sun Aug 14 18:40:21 UTC 2005


>Number:         84925
>Category:       ports
>Synopsis:       [NEW PORT] games/galaxyhack - AI script based strategy game
>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 Aug 14 18:40:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:





>Description:





>How-To-Repeat:





>Fix:


--- galaxyhack.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:
#
#	galaxyhack
#	galaxyhack/Makefile
#	galaxyhack/pkg-plist
#	galaxyhack/distinfo
#	galaxyhack/files
#	galaxyhack/files/patch-Makefile
#	galaxyhack/files/galaxyhack-sh.in
#	galaxyhack/pkg-descr
#
echo c - galaxyhack
mkdir -p galaxyhack > /dev/null 2>&1
echo x - galaxyhack/Makefile
sed 's/^X//' >galaxyhack/Makefile << 'END-of-galaxyhack/Makefile'
X# New ports collection makefile for:	galaxyhack
X# Date created:				10 Aug 2005
X# Whom:					Alejandro Pulver <alejandro at varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	galaxyhack
XPORTVERSION=	1.51
XCATEGORIES=	games
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTFILES=	${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
X		${PORTNAME}-1.5-data${EXTRACT_SUFX}
X
XMAINTAINER=	alejandro at varnet.biz
XCOMMENT=	AI script based strategy game
X
XLIB_DEPENDS=	boost_filesystem.2:${PORTSDIR}/devel/boost \
X		freetype.9:${PORTSDIR}/print/freetype2
X
XWRKSRC=		${WRKDIR}/src
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	gfx image mixer sdl
XUSE_REINPLACE=	yes
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
XALL_TARGET=	${PORTNAME}
X
XSUB_FILES=	${PORTNAME}-sh
X
XDATADIRS=	graphics fleets music gamedata standardpictures
X
Xpost-extract:
X# Remove CVS directories
X	@${FIND} ${WRKDIR}/${PORTNAME} -type d -name CVS -print0 | \
X		${XARGS} -0 ${RM} -rf
X
Xdo-install:
X# Script
X	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}
X
X# Program
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
X
X# Data
X	@${MKDIR} ${DATADIR}
X	@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/settings.dat ${DATADIR}
X.for d in ${DATADIRS}
X	@${CP} -R ${WRKDIR}/${PORTNAME}/${d} ${DATADIR}
X.endfor
X
Xpost-install:
X# Fix permissions
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
X	@${FIND} ${DATADIR} -type f -print0 | \
X		${XARGS} -0 ${CHMOD} ${SHAREMODE}
X	@${FIND} ${DATADIR} -type d -print0 | \
X		${XARGS} -0 ${CHMOD} ${BINMODE}
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "i386" && ${OSVERSION} < 500000
XBROKEN=		Does not compile
X.endif
X
Xpost-patch:
X# Fix Makefile
X	@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \
X			s|%%PREFIX%%|${PREFIX}| ; \
X			s|sdl-config|${SDL_CONFIG}|' \
X				${WRKSRC}/${MAKEFILE}
X
X# Enable/disable compilation optimizations
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/${MAKEFILE}
X.endif
X
X.include <bsd.port.post.mk>
END-of-galaxyhack/Makefile
echo x - galaxyhack/pkg-plist
sed 's/^X//' >galaxyhack/pkg-plist << 'END-of-galaxyhack/pkg-plist'
Xbin/galaxyhack
Xlibexec/galaxyhack
X%%DATADIR%%/settings.dat
X%%DATADIR%%/fleets/Morennians/Moravator.dat
X%%DATADIR%%/fleets/Morennians/Morennian Corvette.dat
X%%DATADIR%%/fleets/Morennians/Morennians.dat
X%%DATADIR%%/fleets/Morennians/X-Fighter.dat
X%%DATADIR%%/fleets/Morennians/attackcapship.ai
X%%DATADIR%%/fleets/Morennians/moveandfire.ai
X%%DATADIR%%/fleets/Morennians/movetocapship.ai
X%%DATADIR%%/fleets/Morennians/movetoslow.ai
X%%DATADIR%%/fleets/Zenennians/Damascus.dat
X%%DATADIR%%/fleets/Zenennians/Emperor.dat
X%%DATADIR%%/fleets/Zenennians/Solar Cruiser.dat
X%%DATADIR%%/fleets/Zenennians/Zenennians.dat
X%%DATADIR%%/fleets/Zenennians/patrolandattack.ai
X%%DATADIR%%/gamedata/equip.dat
X%%DATADIR%%/graphics/boldfont.png
X%%DATADIR%%/graphics/csexplode10.png
X%%DATADIR%%/graphics/csexplode2.png
X%%DATADIR%%/graphics/csexplode3.png
X%%DATADIR%%/graphics/csexplode4.png
X%%DATADIR%%/graphics/csexplode5.png
X%%DATADIR%%/graphics/csexplode6.png
X%%DATADIR%%/graphics/csexplode7.png
X%%DATADIR%%/graphics/csexplode8.png
X%%DATADIR%%/graphics/csexplode9.png
X%%DATADIR%%/graphics/cursor1.png
X%%DATADIR%%/graphics/frexplode2.png
X%%DATADIR%%/graphics/frexplode3.png
X%%DATADIR%%/graphics/frexplode4.png
X%%DATADIR%%/graphics/frexplode5.png
X%%DATADIR%%/graphics/frexplode6.png
X%%DATADIR%%/graphics/frexplode7.png
X%%DATADIR%%/graphics/frexplode8.png
X%%DATADIR%%/graphics/normalfont.png
X%%DATADIR%%/graphics/spacetile.png
X%%DATADIR%%/graphics/spacetile2.png
X%%DATADIR%%/graphics/ssexplode3.png
X%%DATADIR%%/graphics/ssexplode4.png
X%%DATADIR%%/graphics/ssexplode5.png
X%%DATADIR%%/graphics/ssexplode6.png
X%%DATADIR%%/graphics/ssexplode7.png
X%%DATADIR%%/graphics/ssexplode8.png
X%%DATADIR%%/graphics/title.png
X%%DATADIR%%/graphics/windowclose.png
X%%DATADIR%%/music/11radsat.it
X%%DATADIR%%/music/corruptor.ogg
X%%DATADIR%%/music/fission.ogg
X%%DATADIR%%/standardpictures/blue/capship/kasper-capital-1.png
X%%DATADIR%%/standardpictures/blue/capship/kasper-capital-2.png
X%%DATADIR%%/standardpictures/blue/capship/kasper-capital-3.png
X%%DATADIR%%/standardpictures/blue/capship/kpovieta_cp1.png
X%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-1.png
X%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-2.png
X%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-3.png
X%%DATADIR%%/standardpictures/blue/frigate/kpovieta_fr1.png
X%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-1.png
X%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-2.png
X%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-3.png
X%%DATADIR%%/standardpictures/blue/smallship/kpovieta_ft1.png
X%%DATADIR%%/standardpictures/blue/smallship/ss1-hshape-j.png
X%%DATADIR%%/standardpictures/blue/smallship/ss2-xshape-j.png
X%%DATADIR%%/standardpictures/green/capship/kasper-capital-1.png
X%%DATADIR%%/standardpictures/green/capship/kasper-capital-2.png
X%%DATADIR%%/standardpictures/green/capship/kasper-capital-3.png
X%%DATADIR%%/standardpictures/green/capship/kpovieta_cp1.png
X%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-1.png
X%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-2.png
X%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-3.png
X%%DATADIR%%/standardpictures/green/frigate/kpovieta_fr1.png
X%%DATADIR%%/standardpictures/green/smallship/kasper-ss-1.png
X%%DATADIR%%/standardpictures/green/smallship/kasper-ss-2.png
X%%DATADIR%%/standardpictures/green/smallship/kasper-ss-3.png
X%%DATADIR%%/standardpictures/green/smallship/kpovieta_ft1.png
X%%DATADIR%%/standardpictures/green/smallship/ss1-hshape-j.png
X%%DATADIR%%/standardpictures/green/smallship/ss2-xshape-j.png
X%%DATADIR%%/standardpictures/red/capship/kasper-capital-1.png
X%%DATADIR%%/standardpictures/red/capship/kasper-capital-2.png
X%%DATADIR%%/standardpictures/red/capship/kasper-capital-3.png
X%%DATADIR%%/standardpictures/red/capship/kpovieta_cp1.png
X%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-1.png
X%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-2.png
X%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-3.png
X%%DATADIR%%/standardpictures/red/frigate/kpovieta_fr1.png
X%%DATADIR%%/standardpictures/red/smallship/kasper-ss-1.png
X%%DATADIR%%/standardpictures/red/smallship/kasper-ss-2.png
X%%DATADIR%%/standardpictures/red/smallship/kasper-ss-3.png
X%%DATADIR%%/standardpictures/red/smallship/kpovieta_ft1.png
X%%DATADIR%%/standardpictures/red/smallship/ss1-hshape-j.png
X%%DATADIR%%/standardpictures/red/smallship/ss2-xshape-j.png
X%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-1.png
X%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-2.png
X%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-3.png
X%%DATADIR%%/standardpictures/yellow/capship/kpovieta_cp1.png
X%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-1.png
X%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-2.png
X%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-3.png
X%%DATADIR%%/standardpictures/yellow/frigate/kpovieta_fr1.png
X%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-1.png
X%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-2.png
X%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-3.png
X%%DATADIR%%/standardpictures/yellow/smallship/kpovieta_ft1.png
X%%DATADIR%%/standardpictures/yellow/smallship/ss1-hshape-j.png
X%%DATADIR%%/standardpictures/yellow/smallship/ss2-xshape-j.png
X at dirrm %%DATADIR%%/standardpictures/yellow/smallship
X at dirrm %%DATADIR%%/standardpictures/yellow/frigate
X at dirrm %%DATADIR%%/standardpictures/yellow/capship
X at dirrm %%DATADIR%%/standardpictures/yellow
X at dirrm %%DATADIR%%/standardpictures/red/smallship
X at dirrm %%DATADIR%%/standardpictures/red/frigate
X at dirrm %%DATADIR%%/standardpictures/red/capship
X at dirrm %%DATADIR%%/standardpictures/red
X at dirrm %%DATADIR%%/standardpictures/green/smallship
X at dirrm %%DATADIR%%/standardpictures/green/frigate
X at dirrm %%DATADIR%%/standardpictures/green/capship
X at dirrm %%DATADIR%%/standardpictures/green
X at dirrm %%DATADIR%%/standardpictures/blue/smallship
X at dirrm %%DATADIR%%/standardpictures/blue/frigate
X at dirrm %%DATADIR%%/standardpictures/blue/capship
X at dirrm %%DATADIR%%/standardpictures/blue
X at dirrm %%DATADIR%%/standardpictures
X at dirrm %%DATADIR%%/music
X at dirrm %%DATADIR%%/graphics
X at dirrm %%DATADIR%%/gamedata
X at dirrm %%DATADIR%%/fleets/Zenennians
X at dirrm %%DATADIR%%/fleets/Morennians
X at dirrm %%DATADIR%%/fleets
X at dirrm %%DATADIR%%
END-of-galaxyhack/pkg-plist
echo x - galaxyhack/distinfo
sed 's/^X//' >galaxyhack/distinfo << 'END-of-galaxyhack/distinfo'
XMD5 (galaxyhack-1.51-src.tar.bz2) = 16129039c07910cef9d3593628034a78
XSIZE (galaxyhack-1.51-src.tar.bz2) = 74998
XMD5 (galaxyhack-1.5-data.tar.bz2) = 8848e5319c1fdcb3ccb62fe5dc1ab164
XSIZE (galaxyhack-1.5-data.tar.bz2) = 9838488
END-of-galaxyhack/distinfo
echo c - galaxyhack/files
mkdir -p galaxyhack/files > /dev/null 2>&1
echo x - galaxyhack/files/patch-Makefile
sed 's/^X//' >galaxyhack/files/patch-Makefile << 'END-of-galaxyhack/files/patch-Makefile'
X--- Makefile.orig	Sat May  7 05:50:48 2005
X+++ Makefile	Sun Aug  7 16:56:09 2005
X@@ -7,12 +7,11 @@
X #
X 
X INSTALL_DIR=/usr/local/share
X-INSTALL_BIN_DIR=/usr/local/bin
X+INSTALL_BIN_DIR=%%PREFIX%%/bin
X 
X-CXX = g++
X-CXXFLAGS = $(shell sdl-config --cflags) -O3
X+CXXFLAGS = %%CFLAGS%% $(shell sdl-config --cflags) $(shell freetype-config --cflags) -O3
X DEFINES = -D__linux__
X-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_gfx -lboost_filesystem
X+LDFLAGS = $(shell sdl-config --libs) $(shell freetype-config --libs) -lSDL_image -lSDL_mixer -lSDL_gfx -lboost_filesystem
X 
X OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \
X 	ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o Globals.o \
X@@ -37,8 +36,7 @@
X 
X .PHONY: install
X install: $(TARGET)
X-	install -d $(INSTALL_BIN_DIR)
X-	install $(TARGET) $(INSTALL_BIN_DIR)
X+	$(BSD_INSTALL_PROGRAM) $(TARGET) $(INSTALL_BIN_DIR)
X 
X $(TARGET): $(OBJS)
X 	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
END-of-galaxyhack/files/patch-Makefile
echo x - galaxyhack/files/galaxyhack-sh.in
sed 's/^X//' >galaxyhack/files/galaxyhack-sh.in << 'END-of-galaxyhack/files/galaxyhack-sh.in'
X#!/bin/sh
X
X# The executable needs to be run from its data directory, and needs to store
X# configuration in it. We therefore mirror the data directory hierarchy in
X# ~/.galaxyhack, and create symlinks to the data files, but the configuration
X# file is copied, and write permission for the user is added to it.
X
Xcd %%DATADIR%% || exit 1
X
Xfind * -type d -exec mkdir -p ~/.galaxyhack/{} \; || exit 1
X
Xtest -f ~/.galaxyhack/settings.dat || cp settings.dat ~/.galaxyhack && \
Xchmod u+w ~/.galaxyhack/settings.dat
X
Xfind * -type f -exec ln -s %%DATADIR%%/{} ~/.galaxyhack/{} \; 2>/dev/null || \
Xexit 1
X
Xcd ~/.galaxyhack || exit 1
X
Xexec %%PREFIX%%/libexec/galaxyhack
END-of-galaxyhack/files/galaxyhack-sh.in
echo x - galaxyhack/pkg-descr
sed 's/^X//' >galaxyhack/pkg-descr << 'END-of-galaxyhack/pkg-descr'
XGalaxyHack allows you to design a fleet of spaceships which can then be tested
Xin AI script based battles against fleets designed by other players. Though
Xbattles take place in real time, the strategy comes before hand, both in
Xwriting short AI scripts in a simple scripting language, and also in the set
Xup and selection of your fleet. You don't actually have any control over your
Xunits at all mid-battle, but rather use the time to see where the set up of
Xyour fleets is working, where your fleets' weaknesses lie and changes are
Xneeded, and perhaps also to learn from the strategy of your opponent.
X
XThe game revolves around very large capital ships, from which smaller ships
Xare launched. To win a battle you must destroy of all of your opponent's
Xcapital ships before they destroy yours.
X
XThere can be hundreds of units in any one battle, but there is no harvesting,
Xresource management or base building.
X
XWWW: http://galaxyhack.sourceforge.net/
END-of-galaxyhack/pkg-descr
exit

--- galaxyhack.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list