diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2003-11-06 01:07:52 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2003-11-06 01:07:52 +0000 |
commit | 0311c3ad33b333176eb27b9b69e0aa5edd565704 (patch) | |
tree | 18ce6c1f2f6f57ee9674b6986481e8fc9097683b /games/monster-masher | |
parent | f3f7d73f6d5ef824ca70572512d512c3234d08de (diff) | |
download | ports-0311c3ad33b333176eb27b9b69e0aa5edd565704.tar.gz ports-0311c3ad33b333176eb27b9b69e0aa5edd565704.zip |
Notes
Diffstat (limited to 'games/monster-masher')
-rw-r--r-- | games/monster-masher/Makefile | 31 | ||||
-rw-r--r-- | games/monster-masher/distinfo | 1 | ||||
-rw-r--r-- | games/monster-masher/files/extra-patch-src-vector.hpp | 30 | ||||
-rw-r--r-- | games/monster-masher/files/patch-src-Makefile.in | 13 | ||||
-rw-r--r-- | games/monster-masher/files/patch-src::arena.cpp | 21 | ||||
-rw-r--r-- | games/monster-masher/pkg-descr | 6 | ||||
-rw-r--r-- | games/monster-masher/pkg-plist | 97 |
7 files changed, 199 insertions, 0 deletions
diff --git a/games/monster-masher/Makefile b/games/monster-masher/Makefile new file mode 100644 index 000000000000..3932326a83b5 --- /dev/null +++ b/games/monster-masher/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: Monster-Masher +# Date created: 26 Oct 2003 +# Whom: Koop Mast <einekoai@chello.nl> +# +# $FreeBSD$ +# + +PORTNAME= monster +PORTVERSION= 1.4 +CATEGORIES= games gnome +MASTER_SITES= http://www.cs.auc.dk/~olau/monster-masher/source/ +PKGNAMESUFFIX= -masher +DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION} + +MAINTAINER= einekoai@chello.nl +COMMENT= Gnomemm puzzle game where you have to clean the caves of monsters + +LIB_DEPENDS= gnomeuimm-2.0:${PORTSDIR}/x11-toolkits/libgnomeuimm + +USE_X_PREFIX= yes +USE_GNOME= gnomeprefix gnomehack gnometarget +USE_GMAKE= yes +GNU_CONFIGURE= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500010 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-vector.hpp +.endif + +.include <bsd.port.post.mk> diff --git a/games/monster-masher/distinfo b/games/monster-masher/distinfo new file mode 100644 index 000000000000..7287e6c66246 --- /dev/null +++ b/games/monster-masher/distinfo @@ -0,0 +1 @@ +MD5 (monster-masher-1.4.tar.gz) = 35b80609608625578a257c0a0457228b diff --git a/games/monster-masher/files/extra-patch-src-vector.hpp b/games/monster-masher/files/extra-patch-src-vector.hpp new file mode 100644 index 000000000000..1ba2faf2887e --- /dev/null +++ b/games/monster-masher/files/extra-patch-src-vector.hpp @@ -0,0 +1,30 @@ +--- src/vector.hpp.orig Fri Aug 15 19:07:16 2003 ++++ src/vector.hpp Wed Nov 5 20:34:27 2003 +@@ -107,25 +107,17 @@ + } + + template <typename T> +-inline bool operator !=(Vector<T> lhs, Vector<T> rhs) +-{ +- return !(lhs == rhs); +-} +- +-template <typename T> + inline bool operator ==(Vector<T> lhs, Vector<T> rhs) + { + return lhs.x == rhs.x && lhs.y == rhs.y; + } + +-template <> +-inline bool operator ==<double>(Vector<double> lhs, Vector<double> rhs) ++inline bool operator ==(Vector<double> lhs, Vector<double> rhs) + { + return std::abs(lhs.x - rhs.x) < 0.001 && std::abs(lhs.y - rhs.y) < 0.001; + } + +-template <> +-inline bool operator ==<float>(Vector<float> lhs, Vector<float> rhs) ++inline bool operator ==(Vector<float> lhs, Vector<float> rhs) + { + return std::abs(lhs.x - rhs.x) < 0.001 && std::abs(lhs.y - rhs.y) < 0.001; + } diff --git a/games/monster-masher/files/patch-src-Makefile.in b/games/monster-masher/files/patch-src-Makefile.in new file mode 100644 index 000000000000..1ef19e5eee92 --- /dev/null +++ b/games/monster-masher/files/patch-src-Makefile.in @@ -0,0 +1,13 @@ +--- src/Makefile.in.orig Thu Oct 9 21:58:54 2003 ++++ src/Makefile.in Thu Oct 9 22:01:00 2003 +@@ -117,8 +117,8 @@ + + monster_masher_SOURCES = animation.cpp animation.hpp arena.cpp arena.hpp canvas-message.cpp canvas-message.hpp canvas.cpp canvas.hpp center-menu.cpp center-menu.hpp fading-decoration.cpp fading-decoration.hpp footsteps.cpp footsteps.hpp game.cpp game.hpp graphic.cpp graphic.hpp gui-helpers.hpp helpers.cpp helpers.hpp hero.cpp hero.hpp i18n.hpp image-cache.cpp image-cache.hpp intro.cpp intro.hpp main-window.cpp main-window.hpp main.cpp monsters.cpp monsters.hpp movement.cpp movement.hpp new-game-window.cpp new-game-window.hpp obstacles.cpp obstacles.hpp persistent.cpp persistent.hpp pixbuf-drawing.cpp pixbuf-drawing.hpp player.cpp player.hpp preferences-window.cpp preferences-window.hpp sound.cpp sound.hpp splat-helpers.cpp splat-helpers.hpp thing.cpp thing.hpp ucompose.hpp vector.hpp + +-@MAINTAINER_MODE_TRUE@CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -O0 -Wall +-@MAINTAINER_MODE_FALSE@CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -Wall -O3 ++@MAINTAINER_MODE_TRUE@CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -Wall ${CFLAGS} ++@MAINTAINER_MODE_FALSE@CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -Wall ${CFLAGS} + + LDADD = $(DEPS_LIBS) + diff --git a/games/monster-masher/files/patch-src::arena.cpp b/games/monster-masher/files/patch-src::arena.cpp new file mode 100644 index 000000000000..aaf23107e72f --- /dev/null +++ b/games/monster-masher/files/patch-src::arena.cpp @@ -0,0 +1,21 @@ +--- src/arena.cpp.orig Mon Nov 3 06:47:41 2003 ++++ src/arena.cpp Wed Nov 5 20:32:03 2003 +@@ -64,11 +64,16 @@ + + Vector<int> Arena::random_tile() + { ++ const size_t ax = size.x - 2; ++ const size_t ay = size.y - 2; ++ const size_t av = ax * ay; ++ + Vector<int> t; + + do { +- t.x = std::rand() % (size.x - 2) + 1; +- t.y = std::rand() % (size.y - 2) + 1; ++ const int rnd = std::rand() % av; ++ t.x = rnd % ax + 1; ++ t.y = rnd / ax + 1; + } while (occupier(t) != 0); + + return t; diff --git a/games/monster-masher/pkg-descr b/games/monster-masher/pkg-descr new file mode 100644 index 000000000000..8a304bdcd085 --- /dev/null +++ b/games/monster-masher/pkg-descr @@ -0,0 +1,6 @@ +Monster Masher is an action game for the Gnome desktop environment. +The basic idea is that you, as levitation worker gnome, has to clean +the caves for monsters that want to roll over you. You do the cleaning +by mashing the monsters with stone blocks. + +WWW: http://www.cs.auc.dk/~olau/monster-masher/ diff --git a/games/monster-masher/pkg-plist b/games/monster-masher/pkg-plist new file mode 100644 index 000000000000..2ca548a01021 --- /dev/null +++ b/games/monster-masher/pkg-plist @@ -0,0 +1,97 @@ +bin/monster-masher +etc/gconf/gconf.xml.defaults/apps/monster-masher/%gconf.xml +etc/gconf/gconf.xml.defaults/apps/monster-masher/player1/%gconf.xml +etc/gconf/gconf.xml.defaults/apps/monster-masher/player2/%gconf.xml +etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher/%gconf.xml +etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher/player1/%gconf.xml +etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher/player2/%gconf.xml +etc/gconf/schemas/monster-masher.schemas +share/gnome/apps/Games/monster-masher.desktop +share/gnome/monster-masher/glade/ui.glade +share/gnome/monster-masher/pixmaps/block-24.png +share/gnome/monster-masher/pixmaps/block-32.png +share/gnome/monster-masher/pixmaps/egg-layer-egg-24.png +share/gnome/monster-masher/pixmaps/egg-layer-egg-32.png +share/gnome/monster-masher/pixmaps/egg-layer-gore-24.png +share/gnome/monster-masher/pixmaps/egg-layer-gore-32.png +share/gnome/monster-masher/pixmaps/egg-layer-monster-24.png +share/gnome/monster-masher/pixmaps/egg-layer-monster-32.png +share/gnome/monster-masher/pixmaps/footprint-down-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-down-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-left-down-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-left-down-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-left-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-left-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-left-up-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-left-up-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-right-down-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-right-down-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-right-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-right-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-right-up-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-right-up-rightmost.png +share/gnome/monster-masher/pixmaps/footprint-up-leftmost.png +share/gnome/monster-masher/pixmaps/footprint-up-rightmost.png +share/gnome/monster-masher/pixmaps/freeze-box-24.png +share/gnome/monster-masher/pixmaps/freeze-box-32.png +share/gnome/monster-masher/pixmaps/hard-egg-24.png +share/gnome/monster-masher/pixmaps/hard-egg-32.png +share/gnome/monster-masher/pixmaps/hard-gore-24.png +share/gnome/monster-masher/pixmaps/hard-gore-32.png +share/gnome/monster-masher/pixmaps/hard-monster-24.png +share/gnome/monster-masher/pixmaps/hard-monster-32.png +share/gnome/monster-masher/pixmaps/hero-down-24.png +share/gnome/monster-masher/pixmaps/hero-down-32.png +share/gnome/monster-masher/pixmaps/hero-gore-24.png +share/gnome/monster-masher/pixmaps/hero-gore-32.png +share/gnome/monster-masher/pixmaps/hero-left-24.png +share/gnome/monster-masher/pixmaps/hero-left-32.png +share/gnome/monster-masher/pixmaps/hero-left-down-24.png +share/gnome/monster-masher/pixmaps/hero-left-down-32.png +share/gnome/monster-masher/pixmaps/hero-left-up-24.png +share/gnome/monster-masher/pixmaps/hero-left-up-32.png +share/gnome/monster-masher/pixmaps/hero-right-24.png +share/gnome/monster-masher/pixmaps/hero-right-32.png +share/gnome/monster-masher/pixmaps/hero-right-down-24.png +share/gnome/monster-masher/pixmaps/hero-right-down-32.png +share/gnome/monster-masher/pixmaps/hero-right-up-24.png +share/gnome/monster-masher/pixmaps/hero-right-up-32.png +share/gnome/monster-masher/pixmaps/hero-up-24.png +share/gnome/monster-masher/pixmaps/hero-up-32.png +share/gnome/monster-masher/pixmaps/levitation-24.png +share/gnome/monster-masher/pixmaps/levitation-32.png +share/gnome/monster-masher/pixmaps/monster-wall-24.png +share/gnome/monster-masher/pixmaps/monster-wall-32.png +share/gnome/monster-masher/pixmaps/plain-egg-24.png +share/gnome/monster-masher/pixmaps/plain-egg-32.png +share/gnome/monster-masher/pixmaps/plain-gore-24.png +share/gnome/monster-masher/pixmaps/plain-gore-32.png +share/gnome/monster-masher/pixmaps/plain-monster-24.png +share/gnome/monster-masher/pixmaps/plain-monster-32.png +share/gnome/monster-masher/pixmaps/power-up-explode-24.png +share/gnome/monster-masher/pixmaps/power-up-explode-32.png +share/gnome/monster-masher/pixmaps/power-up-freeze-24.png +share/gnome/monster-masher/pixmaps/power-up-freeze-32.png +share/gnome/monster-masher/pixmaps/power-up-reward-24.png +share/gnome/monster-masher/pixmaps/power-up-reward-32.png +share/gnome/monster-masher/pixmaps/seeker-egg-24.png +share/gnome/monster-masher/pixmaps/seeker-egg-32.png +share/gnome/monster-masher/pixmaps/seeker-gore-24.png +share/gnome/monster-masher/pixmaps/seeker-gore-32.png +share/gnome/monster-masher/pixmaps/seeker-monster-24.png +share/gnome/monster-masher/pixmaps/seeker-monster-32.png +share/gnome/monster-masher/pixmaps/wall-24.png +share/gnome/monster-masher/pixmaps/wall-32.png +share/gnome/monster-masher/sounds/clinck.wav +share/gnome/monster-masher/sounds/splat.wav +share/gnome/pixmaps/monster-masher.png +@dirrm share/gnome/monster-masher/glade +@dirrm share/gnome/monster-masher/pixmaps +@dirrm share/gnome/monster-masher/sounds +@dirrm share/gnome/monster-masher +@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher/player2 +@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher/player1 +@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/monster-masher +@dirrm etc/gconf/gconf.xml.defaults/apps/monster-masher/player2 +@dirrm etc/gconf/gconf.xml.defaults/apps/monster-masher/player1 +@dirrm etc/gconf/gconf.xml.defaults/apps/monster-masher |