aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2005-01-20 17:09:41 +0800
committerdanfe <danfe@FreeBSD.org>2005-01-20 17:09:41 +0800
commit97439a1ce8f7b73eb85f07d5d0d35755f3b4d15d (patch)
treec52f802e6ca10d770c1d39f56e6fe6c8ffac20ec /games
parent384e7898f71731c9084c7fdea05a1e7a476d596d (diff)
downloadfreebsd-ports-gnome-97439a1ce8f7b73eb85f07d5d0d35755f3b4d15d.tar.gz
freebsd-ports-gnome-97439a1ce8f7b73eb85f07d5d0d35755f3b4d15d.tar.zst
freebsd-ports-gnome-97439a1ce8f7b73eb85f07d5d0d35755f3b4d15d.zip
Add highmoon 1.0.2, a duel in the universe game.
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/highmoon/Makefile35
-rw-r--r--games/highmoon/distinfo2
-rw-r--r--games/highmoon/files/patch-Makefile27
-rw-r--r--games/highmoon/pkg-descr10
-rw-r--r--games/highmoon/pkg-plist25
6 files changed, 100 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index ffdcbd2c624e..ed8cddb63535 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -203,6 +203,7 @@
SUBDIR += heretic
SUBDIR += heroes
SUBDIR += hex
+ SUBDIR += highmoon
SUBDIR += hlserver-action
SUBDIR += hlserver-admin
SUBDIR += hlserver-cs
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%%