From 82151969a7e765675a57233558f4e8009bc3bb07 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Tue, 2 Apr 2002 16:43:40 +0000 Subject: toppler (aka nebulous) is a game where you have to guide a small frog up a tower, avoiding the baddies. You do have a snowball to fire, though. PR: 34119 Submitted by: dom@happygiraffe.net --- games/toppler/Makefile | 46 +++++++++++++++++++++++++++++++++++++ games/toppler/distinfo | 1 + games/toppler/files/patch-configure | 11 +++++++++ games/toppler/files/patch-menu.cc | 30 ++++++++++++++++++++++++ games/toppler/pkg-comment | 1 + games/toppler/pkg-descr | 15 ++++++++++++ games/toppler/pkg-plist | 15 ++++++++++++ 7 files changed, 119 insertions(+) create mode 100644 games/toppler/Makefile create mode 100644 games/toppler/distinfo create mode 100644 games/toppler/files/patch-configure create mode 100644 games/toppler/files/patch-menu.cc create mode 100644 games/toppler/pkg-comment create mode 100644 games/toppler/pkg-descr create mode 100644 games/toppler/pkg-plist (limited to 'games/toppler') diff --git a/games/toppler/Makefile b/games/toppler/Makefile new file mode 100644 index 000000000000..48f09f4744a7 --- /dev/null +++ b/games/toppler/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: toppler +# Date created: 18 Jan 2002 +# Whom: Dom Mitchell +# +# $FreeBSD$ +# + +PORTNAME= toppler +PORTVERSION= 0.71 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= toppler + +MAINTAINER= dom@happygiraffe.net + +LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12 + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config + +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" + +SCOREDIR?= /var/games/${PORTNAME} +SCOREFILE?= ${PORTNAME}.hscr + +pre-patch: + @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure + @find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \ + xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s| diff --git a/games/toppler/distinfo b/games/toppler/distinfo new file mode 100644 index 000000000000..f6a401e5a2f1 --- /dev/null +++ b/games/toppler/distinfo @@ -0,0 +1 @@ +MD5 (toppler-0.71.tar.gz) = cdaa3dd91cfa2938ffa3979ed03f7f4f diff --git a/games/toppler/files/patch-configure b/games/toppler/files/patch-configure new file mode 100644 index 000000000000..520531aa0023 --- /dev/null +++ b/games/toppler/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Sat Jan 19 09:55:17 2002 ++++ configure Sat Jan 19 09:54:37 2002 +@@ -1167,7 +1167,7 @@ + rm -f conf.sdltest + + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" +-LIS="$LIBS $SDL_LIBS" ++LIBS="$LIBS $SDL_LIBS" + + echo $ac_n "checking for main in -lSDL_mixer""... $ac_c" 1>&6 + echo "configure:1174: checking for main in -lSDL_mixer" >&5 diff --git a/games/toppler/files/patch-menu.cc b/games/toppler/files/patch-menu.cc new file mode 100644 index 000000000000..b85cc1a75a3e --- /dev/null +++ b/games/toppler/files/patch-menu.cc @@ -0,0 +1,30 @@ +--- menu.cc.orig Sat Jan 19 11:08:41 2002 ++++ menu.cc Sat Jan 19 11:11:09 2002 +@@ -10,6 +10,9 @@ + + #include + ++#define SCOREDIR "%SCOREDIR%" ++#define SCOREFILE "%SCOREFILE%" ++ + static unsigned short menupicture, titledata; + static unsigned char currentmission = 0; + +@@ -175,7 +178,7 @@ + static void getscores() { + char n[300]; + +- sprintf(n, "%s/nebulous.hsc", getenv("HOME")); ++ sprintf(n, "%s/%s", SCOREDIR, SCOREFILE); + FILE *f = fopen(n, "rb"); + + if (f) { +@@ -195,7 +198,7 @@ + static void savescores() { + char n[300]; + +- sprintf(n, "%s/nebulous.hsc", getenv("HOME")); ++ sprintf(n, "%s/%s", SCOREDIR, SCOREFILE); + + FILE *f = fopen(n, "r+b"); + diff --git a/games/toppler/pkg-comment b/games/toppler/pkg-comment new file mode 100644 index 000000000000..613d7288fbc3 --- /dev/null +++ b/games/toppler/pkg-comment @@ -0,0 +1 @@ +A game where you have to climb the tower and avoid the monsters diff --git a/games/toppler/pkg-descr b/games/toppler/pkg-descr new file mode 100644 index 000000000000..ecfa24259c1d --- /dev/null +++ b/games/toppler/pkg-descr @@ -0,0 +1,15 @@ +The target of the game is to reach the target door of each of the 8 +towers in currently 2 missions with this little green animal. This +door is usually at the very top of the tower. + +But finding the way by using elevators and walking trough a maze of +doors and platforms is not the only problem you have to solve. There +is a bunch of other creatures living on the tower that will hinder +you to reach your target by pushing you over the edge of the +platforms. + +The only weapon of defence you have is to throw a little snowball. But +most of the other creatures just don't care about this. So you must +avoid them. + +WWW: http://toppler.sf.net/ diff --git a/games/toppler/pkg-plist b/games/toppler/pkg-plist new file mode 100644 index 000000000000..723747fbb8bc --- /dev/null +++ b/games/toppler/pkg-plist @@ -0,0 +1,15 @@ +bin/toppler +share/toppler/boing.wav +share/toppler/bubbles.wav +share/toppler/hit.wav +share/toppler/honk.wav +share/toppler/layer1.tga +share/toppler/layer2.tga +share/toppler/layer3.tga +share/toppler/nebulous.dat +share/toppler/splash.wav +share/toppler/swosh.wav +share/toppler/tap.wav +share/toppler/tick.wav +share/toppler/water.wav +@dirrm share/toppler -- cgit v1.2.3