diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2005-01-20 09:09:41 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2005-01-20 09:09:41 +0000 |
commit | 72ac6fe224f11bdb7cb1eea18b0e60e3f67cb560 (patch) | |
tree | 951295b90595810d8b10948e992539b9205825b5 /games/highmoon | |
parent | 1441627c6949b6d128b7e646eeeafadb7ea61643 (diff) | |
download | ports-72ac6fe224f11bdb7cb1eea18b0e60e3f67cb560.tar.gz ports-72ac6fe224f11bdb7cb1eea18b0e60e3f67cb560.zip |
Notes
Diffstat (limited to 'games/highmoon')
-rw-r--r-- | games/highmoon/Makefile | 35 | ||||
-rw-r--r-- | games/highmoon/distinfo | 2 | ||||
-rw-r--r-- | games/highmoon/files/patch-Makefile | 27 | ||||
-rw-r--r-- | games/highmoon/pkg-descr | 10 | ||||
-rw-r--r-- | games/highmoon/pkg-plist | 25 |
5 files changed, 99 insertions, 0 deletions
diff --git a/games/highmoon/Makefile b/games/highmoon/Makefile new file mode 100644 index 000000000000..9cc6853cdfe0 --- /dev/null +++ b/games/highmoon/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: HighMoon +# Date created: 20 Jan 2005 +# Whom: Alexey Dokuchaev <danfe@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= highmoon +PORTVERSION= 1.0.2 +CATEGORIES= games +MASTER_SITES= http://highmoon.gerdsmeier.net/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Duel in the universe + +USE_REINPLACE= yes +USE_SDL= sdl + +WRKSRC= ${WRKDIR}/${PORTNAME} + +pre-patch: + @${REINPLACE_CMD} -E 's,"(snd|gfx)/,"${DATADIR}/\1/,' \ + ${WRKSRC}/galaxy.cpp ${WRKSRC}/graphics.cpp ${WRKSRC}/sound.cpp + @${REINPLACE_CMD} -e 's,[[:cntrl:]]*$$,,' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's,^#include <SDL/,#include <,' \ + ${WRKSRC}/constants.hpp ${WRKSRC}/graphics.hpp \ + ${WRKSRC}/main.cpp ${WRKSRC}/main.cpp ${WRKSRC}/sound.hpp + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ufo ${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${DATADIR}/snd ${DATADIR}/gfx + ${INSTALL_DATA} ${WRKSRC}/snd/* ${DATADIR}/snd + ${INSTALL_DATA} ${WRKSRC}/gfx/* ${DATADIR}/gfx + +.include <bsd.port.mk> diff --git a/games/highmoon/distinfo b/games/highmoon/distinfo new file mode 100644 index 000000000000..76226b0a1003 --- /dev/null +++ b/games/highmoon/distinfo @@ -0,0 +1,2 @@ +MD5 (highmoon-1.0.2.tar.gz) = c4e240e65db4041b4f038d633bbdcfd7 +SIZE (highmoon-1.0.2.tar.gz) = 396553 diff --git a/games/highmoon/files/patch-Makefile b/games/highmoon/files/patch-Makefile new file mode 100644 index 000000000000..f1ec5030668b --- /dev/null +++ b/games/highmoon/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig Thu Jan 20 15:00:24 2005 ++++ Makefile Thu Jan 20 14:51:52 2005 +@@ -1,17 +1,19 @@ + # Makefile for ufo + +-CFLAGS = -g -O3 -Wall `sdl-config --cflags` +-CXXFLAGS = $(CFLAGS) +-LIBS = `sdl-config --libs` -lSDL_gfx ++CXXFLAGS += `sdl11-config --cflags` ++LIBS = `sdl11-config --libs` + MAINNAME = ufo +-CC=g++ ++CXX ?= g++ + + OBJS = main.o vector2d.o language.o sound.o graphics.o galaxy.o + ++.cpp.o: ++ $(CXX) $(CXXFLAGS) -c $< -o $*.o ++ + all: ufo + + ufo: $(OBJS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $(MAINNAME) $(OBJS) $(LIBS) ++ $(CXX) $(LDFLAGS) -o $(MAINNAME) $(OBJS) $(LIBS) + + clean: + rm -f *.o diff --git a/games/highmoon/pkg-descr b/games/highmoon/pkg-descr new file mode 100644 index 000000000000..199e8ee60c66 --- /dev/null +++ b/games/highmoon/pkg-descr @@ -0,0 +1,10 @@ +HighMoon is a game similar to "Artillery" or "Worms" -- but it takes place +in the universe. There is a planet system between two flying saucers. The +gravitational fields of the planets and moons change inevitably each +ballistic curve. It is not easy to eliminate an enemy. If you miss it, +the shoots can change their direction and become dangerous to the attacker. + +HighMoon can be played against a computer or a human opponent in many +planet systems. + +WWW: http://highmoon.gerdsmeier.net/ diff --git a/games/highmoon/pkg-plist b/games/highmoon/pkg-plist new file mode 100644 index 000000000000..59d73b7366af --- /dev/null +++ b/games/highmoon/pkg-plist @@ -0,0 +1,25 @@ +bin/highmoon +%%DATADIR%%/gfx/c_shooting.bmp +%%DATADIR%%/gfx/c_thinking.bmp +%%DATADIR%%/gfx/cpktblue.bmp +%%DATADIR%%/gfx/cpktred.bmp +%%DATADIR%%/gfx/earth.bmp +%%DATADIR%%/gfx/explosionanim.bmp +%%DATADIR%%/gfx/font.bmp +%%DATADIR%%/gfx/hole.bmp +%%DATADIR%%/gfx/jupiter.bmp +%%DATADIR%%/gfx/mars.bmp +%%DATADIR%%/gfx/moon.bmp +%%DATADIR%%/gfx/shoot.bmp +%%DATADIR%%/gfx/shootback.bmp +%%DATADIR%%/gfx/ufoblue.bmp +%%DATADIR%%/gfx/ufored.bmp +@dirrm %%DATADIR%%/gfx +%%DATADIR%%/snd/applause.wav +%%DATADIR%%/snd/beam.wav +%%DATADIR%%/snd/explosion.wav +%%DATADIR%%/snd/kling.wav +%%DATADIR%%/snd/laser.wav +%%DATADIR%%/snd/pluck.wav +@dirrm %%DATADIR%%/snd +@dirrm %%DATADIR%% |