diff options
author | garga <garga@FreeBSD.org> | 2005-10-04 23:38:54 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-10-04 23:38:54 +0800 |
commit | 0244d544dcab0bfb83419e42054da51ab7b7b46c (patch) | |
tree | 8924f09226f40288b5fb2fb85a7edb8bd527f142 /games | |
parent | cd932c04e2efa7f3c0a5ee464ded70ae263007ff (diff) | |
download | freebsd-ports-gnome-0244d544dcab0bfb83419e42054da51ab7b7b46c.tar.gz freebsd-ports-gnome-0244d544dcab0bfb83419e42054da51ab7b7b46c.tar.zst freebsd-ports-gnome-0244d544dcab0bfb83419e42054da51ab7b7b46c.zip |
GalaxyHack allows you to design a fleet of spaceships which can then be tested
in AI script based battles against fleets designed by other players. Though
battles take place in real time, the strategy comes before hand, both in
writing short AI scripts in a simple scripting language, and also in the set
up and selection of your fleet. You don't actually have any control over your
units at all mid-battle, but rather use the time to see where the set up of
your fleets is working, where your fleets' weaknesses lie and changes are
needed, and perhaps also to learn from the strategy of your opponent.
The game revolves around very large capital ships, from which smaller ships
are launched. To win a battle you must destroy of all of your opponent's
capital ships before they destroy yours.
There can be hundreds of units in any one battle, but there is no harvesting,
resource management or base building.
WWW: http://galaxyhack.sourceforge.net/
PR: ports/84925
Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/galaxyhack/Makefile | 82 | ||||
-rw-r--r-- | games/galaxyhack/distinfo | 4 | ||||
-rw-r--r-- | games/galaxyhack/files/galaxyhack-sh.in | 20 | ||||
-rw-r--r-- | games/galaxyhack/files/patch-Makefile | 28 | ||||
-rw-r--r-- | games/galaxyhack/pkg-descr | 17 | ||||
-rw-r--r-- | games/galaxyhack/pkg-plist | 129 |
7 files changed, 281 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 9dbdb083b5c1..ff034d2da158 100644 --- a/games/Makefile +++ b/games/Makefile @@ -174,6 +174,7 @@ SUBDIR += frozenbubble SUBDIR += fuhquake SUBDIR += galaxis + SUBDIR += galaxyhack SUBDIR += garith SUBDIR += gbottler SUBDIR += gcompris2 diff --git a/games/galaxyhack/Makefile b/games/galaxyhack/Makefile new file mode 100644 index 000000000000..b17580ff1e6c --- /dev/null +++ b/games/galaxyhack/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: galaxyhack +# Date created: 10 Aug 2005 +# Whom: Alejandro Pulver <alejandro@varnet.biz> +# +# $FreeBSD$ +# + +PORTNAME= galaxyhack +PORTVERSION= 1.51 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \ + ${PORTNAME}-1.5-data${EXTRACT_SUFX} + +MAINTAINER= alejandro@varnet.biz +COMMENT= AI script based strategy game + +LIB_DEPENDS= boost_filesystem.2:${PORTSDIR}/devel/boost \ + freetype.9:${PORTSDIR}/print/freetype2 + +WRKSRC= ${WRKDIR}/src + +USE_BZIP2= yes +USE_GMAKE= yes +USE_SDL= gfx image mixer sdl +USE_REINPLACE= yes + +OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on + +ALL_TARGET= ${PORTNAME} + +SUB_FILES= ${PORTNAME}-sh + +DATADIRS= graphics fleets music gamedata standardpictures + +post-extract: +# Remove CVS directories + @${FIND} ${WRKDIR}/${PORTNAME} -type d -name CVS -print0 | \ + ${XARGS} -0 ${RM} -rf + +do-install: +# Script + @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME} + +# Program + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec + +# Data + @${MKDIR} ${DATADIR} + @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/settings.dat ${DATADIR} +.for d in ${DATADIRS} + @${CP} -R ${WRKDIR}/${PORTNAME}/${d} ${DATADIR} +.endfor + +post-install: +# Fix permissions + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} + @${FIND} ${DATADIR} -type f -print0 | \ + ${XARGS} -0 ${CHMOD} ${SHAREMODE} + @${FIND} ${DATADIR} -type d -print0 | \ + ${XARGS} -0 ${CHMOD} ${BINMODE} + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "i386" && ${OSVERSION} < 500000 +BROKEN= "Does not compile on < 5.x" +.endif + +post-patch: +# Fix Makefile + @${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \ + s|%%PREFIX%%|${PREFIX}| ; \ + s|sdl-config|${SDL_CONFIG}|' \ + ${WRKSRC}/${MAKEFILE} + +# Enable/disable compilation optimizations +.if !defined(WITH_OPTIMIZED_CFLAGS) + @${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/${MAKEFILE} +.endif + +.include <bsd.port.post.mk> diff --git a/games/galaxyhack/distinfo b/games/galaxyhack/distinfo new file mode 100644 index 000000000000..b5676622a469 --- /dev/null +++ b/games/galaxyhack/distinfo @@ -0,0 +1,4 @@ +MD5 (galaxyhack-1.51-src.tar.bz2) = 16129039c07910cef9d3593628034a78 +SIZE (galaxyhack-1.51-src.tar.bz2) = 74998 +MD5 (galaxyhack-1.5-data.tar.bz2) = 8848e5319c1fdcb3ccb62fe5dc1ab164 +SIZE (galaxyhack-1.5-data.tar.bz2) = 9838488 diff --git a/games/galaxyhack/files/galaxyhack-sh.in b/games/galaxyhack/files/galaxyhack-sh.in new file mode 100644 index 000000000000..028c37b88061 --- /dev/null +++ b/games/galaxyhack/files/galaxyhack-sh.in @@ -0,0 +1,20 @@ +#!/bin/sh + +# The executable needs to be run from its data directory, and needs to store +# configuration in it. We therefore mirror the data directory hierarchy in +# ~/.galaxyhack, and create symlinks to the data files, but the configuration +# file is copied, and write permission for the user is added to it. + +cd %%DATADIR%% || exit 1 + +find * -type d -exec mkdir -p ~/.galaxyhack/{} \; || exit 1 + +test -f ~/.galaxyhack/settings.dat || cp settings.dat ~/.galaxyhack && \ +chmod u+w ~/.galaxyhack/settings.dat + +find * -type f -exec ln -s %%DATADIR%%/{} ~/.galaxyhack/{} \; 2>/dev/null || \ +exit 1 + +cd ~/.galaxyhack || exit 1 + +exec %%PREFIX%%/libexec/galaxyhack "$@" diff --git a/games/galaxyhack/files/patch-Makefile b/games/galaxyhack/files/patch-Makefile new file mode 100644 index 000000000000..24ce28d44213 --- /dev/null +++ b/games/galaxyhack/files/patch-Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig Sat May 7 05:50:48 2005 ++++ Makefile Sun Aug 7 16:56:09 2005 +@@ -7,12 +7,11 @@ + # + + INSTALL_DIR=/usr/local/share +-INSTALL_BIN_DIR=/usr/local/bin ++INSTALL_BIN_DIR=%%PREFIX%%/bin + +-CXX = g++ +-CXXFLAGS = $(shell sdl-config --cflags) -O3 ++CXXFLAGS = %%CFLAGS%% $(shell sdl-config --cflags) $(shell freetype-config --cflags) -O3 + DEFINES = -D__linux__ +-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_gfx -lboost_filesystem ++LDFLAGS = $(shell sdl-config --libs) $(shell freetype-config --libs) -lSDL_image -lSDL_mixer -lSDL_gfx -lboost_filesystem + + OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \ + ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o Globals.o \ +@@ -37,8 +36,7 @@ + + .PHONY: install + install: $(TARGET) +- install -d $(INSTALL_BIN_DIR) +- install $(TARGET) $(INSTALL_BIN_DIR) ++ $(BSD_INSTALL_PROGRAM) $(TARGET) $(INSTALL_BIN_DIR) + + $(TARGET): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ diff --git a/games/galaxyhack/pkg-descr b/games/galaxyhack/pkg-descr new file mode 100644 index 000000000000..55a2bc21a4b3 --- /dev/null +++ b/games/galaxyhack/pkg-descr @@ -0,0 +1,17 @@ +GalaxyHack allows you to design a fleet of spaceships which can then be tested +in AI script based battles against fleets designed by other players. Though +battles take place in real time, the strategy comes before hand, both in +writing short AI scripts in a simple scripting language, and also in the set +up and selection of your fleet. You don't actually have any control over your +units at all mid-battle, but rather use the time to see where the set up of +your fleets is working, where your fleets' weaknesses lie and changes are +needed, and perhaps also to learn from the strategy of your opponent. + +The game revolves around very large capital ships, from which smaller ships +are launched. To win a battle you must destroy of all of your opponent's +capital ships before they destroy yours. + +There can be hundreds of units in any one battle, but there is no harvesting, +resource management or base building. + +WWW: http://galaxyhack.sourceforge.net/ diff --git a/games/galaxyhack/pkg-plist b/games/galaxyhack/pkg-plist new file mode 100644 index 000000000000..5f8a1e746002 --- /dev/null +++ b/games/galaxyhack/pkg-plist @@ -0,0 +1,129 @@ +bin/galaxyhack +libexec/galaxyhack +%%DATADIR%%/settings.dat +%%DATADIR%%/fleets/Morennians/Moravator.dat +%%DATADIR%%/fleets/Morennians/Morennian Corvette.dat +%%DATADIR%%/fleets/Morennians/Morennians.dat +%%DATADIR%%/fleets/Morennians/X-Fighter.dat +%%DATADIR%%/fleets/Morennians/attackcapship.ai +%%DATADIR%%/fleets/Morennians/moveandfire.ai +%%DATADIR%%/fleets/Morennians/movetocapship.ai +%%DATADIR%%/fleets/Morennians/movetoslow.ai +%%DATADIR%%/fleets/Zenennians/Damascus.dat +%%DATADIR%%/fleets/Zenennians/Emperor.dat +%%DATADIR%%/fleets/Zenennians/Solar Cruiser.dat +%%DATADIR%%/fleets/Zenennians/Zenennians.dat +%%DATADIR%%/fleets/Zenennians/patrolandattack.ai +%%DATADIR%%/gamedata/equip.dat +%%DATADIR%%/graphics/boldfont.png +%%DATADIR%%/graphics/csexplode10.png +%%DATADIR%%/graphics/csexplode2.png +%%DATADIR%%/graphics/csexplode3.png +%%DATADIR%%/graphics/csexplode4.png +%%DATADIR%%/graphics/csexplode5.png +%%DATADIR%%/graphics/csexplode6.png +%%DATADIR%%/graphics/csexplode7.png +%%DATADIR%%/graphics/csexplode8.png +%%DATADIR%%/graphics/csexplode9.png +%%DATADIR%%/graphics/cursor1.png +%%DATADIR%%/graphics/frexplode2.png +%%DATADIR%%/graphics/frexplode3.png +%%DATADIR%%/graphics/frexplode4.png +%%DATADIR%%/graphics/frexplode5.png +%%DATADIR%%/graphics/frexplode6.png +%%DATADIR%%/graphics/frexplode7.png +%%DATADIR%%/graphics/frexplode8.png +%%DATADIR%%/graphics/normalfont.png +%%DATADIR%%/graphics/spacetile.png +%%DATADIR%%/graphics/spacetile2.png +%%DATADIR%%/graphics/ssexplode3.png +%%DATADIR%%/graphics/ssexplode4.png +%%DATADIR%%/graphics/ssexplode5.png +%%DATADIR%%/graphics/ssexplode6.png +%%DATADIR%%/graphics/ssexplode7.png +%%DATADIR%%/graphics/ssexplode8.png +%%DATADIR%%/graphics/title.png +%%DATADIR%%/graphics/windowclose.png +%%DATADIR%%/music/11radsat.it +%%DATADIR%%/music/corruptor.ogg +%%DATADIR%%/music/fission.ogg +%%DATADIR%%/standardpictures/blue/capship/kasper-capital-1.png +%%DATADIR%%/standardpictures/blue/capship/kasper-capital-2.png +%%DATADIR%%/standardpictures/blue/capship/kasper-capital-3.png +%%DATADIR%%/standardpictures/blue/capship/kpovieta_cp1.png +%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-1.png +%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-2.png +%%DATADIR%%/standardpictures/blue/frigate/kasper-frigate-3.png +%%DATADIR%%/standardpictures/blue/frigate/kpovieta_fr1.png +%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-1.png +%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-2.png +%%DATADIR%%/standardpictures/blue/smallship/kasper-ss-3.png +%%DATADIR%%/standardpictures/blue/smallship/kpovieta_ft1.png +%%DATADIR%%/standardpictures/blue/smallship/ss1-hshape-j.png +%%DATADIR%%/standardpictures/blue/smallship/ss2-xshape-j.png +%%DATADIR%%/standardpictures/green/capship/kasper-capital-1.png +%%DATADIR%%/standardpictures/green/capship/kasper-capital-2.png +%%DATADIR%%/standardpictures/green/capship/kasper-capital-3.png +%%DATADIR%%/standardpictures/green/capship/kpovieta_cp1.png +%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-1.png +%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-2.png +%%DATADIR%%/standardpictures/green/frigate/kasper-frigate-3.png +%%DATADIR%%/standardpictures/green/frigate/kpovieta_fr1.png +%%DATADIR%%/standardpictures/green/smallship/kasper-ss-1.png +%%DATADIR%%/standardpictures/green/smallship/kasper-ss-2.png +%%DATADIR%%/standardpictures/green/smallship/kasper-ss-3.png +%%DATADIR%%/standardpictures/green/smallship/kpovieta_ft1.png +%%DATADIR%%/standardpictures/green/smallship/ss1-hshape-j.png +%%DATADIR%%/standardpictures/green/smallship/ss2-xshape-j.png +%%DATADIR%%/standardpictures/red/capship/kasper-capital-1.png +%%DATADIR%%/standardpictures/red/capship/kasper-capital-2.png +%%DATADIR%%/standardpictures/red/capship/kasper-capital-3.png +%%DATADIR%%/standardpictures/red/capship/kpovieta_cp1.png +%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-1.png +%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-2.png +%%DATADIR%%/standardpictures/red/frigate/kasper-frigate-3.png +%%DATADIR%%/standardpictures/red/frigate/kpovieta_fr1.png +%%DATADIR%%/standardpictures/red/smallship/kasper-ss-1.png +%%DATADIR%%/standardpictures/red/smallship/kasper-ss-2.png +%%DATADIR%%/standardpictures/red/smallship/kasper-ss-3.png +%%DATADIR%%/standardpictures/red/smallship/kpovieta_ft1.png +%%DATADIR%%/standardpictures/red/smallship/ss1-hshape-j.png +%%DATADIR%%/standardpictures/red/smallship/ss2-xshape-j.png +%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-1.png +%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-2.png +%%DATADIR%%/standardpictures/yellow/capship/kasper-capital-3.png +%%DATADIR%%/standardpictures/yellow/capship/kpovieta_cp1.png +%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-1.png +%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-2.png +%%DATADIR%%/standardpictures/yellow/frigate/kasper-frigate-3.png +%%DATADIR%%/standardpictures/yellow/frigate/kpovieta_fr1.png +%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-1.png +%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-2.png +%%DATADIR%%/standardpictures/yellow/smallship/kasper-ss-3.png +%%DATADIR%%/standardpictures/yellow/smallship/kpovieta_ft1.png +%%DATADIR%%/standardpictures/yellow/smallship/ss1-hshape-j.png +%%DATADIR%%/standardpictures/yellow/smallship/ss2-xshape-j.png +@dirrm %%DATADIR%%/standardpictures/yellow/smallship +@dirrm %%DATADIR%%/standardpictures/yellow/frigate +@dirrm %%DATADIR%%/standardpictures/yellow/capship +@dirrm %%DATADIR%%/standardpictures/yellow +@dirrm %%DATADIR%%/standardpictures/red/smallship +@dirrm %%DATADIR%%/standardpictures/red/frigate +@dirrm %%DATADIR%%/standardpictures/red/capship +@dirrm %%DATADIR%%/standardpictures/red +@dirrm %%DATADIR%%/standardpictures/green/smallship +@dirrm %%DATADIR%%/standardpictures/green/frigate +@dirrm %%DATADIR%%/standardpictures/green/capship +@dirrm %%DATADIR%%/standardpictures/green +@dirrm %%DATADIR%%/standardpictures/blue/smallship +@dirrm %%DATADIR%%/standardpictures/blue/frigate +@dirrm %%DATADIR%%/standardpictures/blue/capship +@dirrm %%DATADIR%%/standardpictures/blue +@dirrm %%DATADIR%%/standardpictures +@dirrm %%DATADIR%%/music +@dirrm %%DATADIR%%/graphics +@dirrm %%DATADIR%%/gamedata +@dirrm %%DATADIR%%/fleets/Zenennians +@dirrm %%DATADIR%%/fleets/Morennians +@dirrm %%DATADIR%%/fleets +@dirrm %%DATADIR%% |