aboutsummaryrefslogtreecommitdiffstats
path: root/games/toppler
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-04-03 00:43:40 +0800
committerdinoex <dinoex@FreeBSD.org>2002-04-03 00:43:40 +0800
commitc5374af57b740fa19cb5af898706f0fadae21b7a (patch)
tree9ea5633dfa8ff5fd00c6e1ea19f4abbbb22a9890 /games/toppler
parentd70126eede102a6608d1e0ebc5583d83a551fd84 (diff)
downloadfreebsd-ports-graphics-c5374af57b740fa19cb5af898706f0fadae21b7a.tar.gz
freebsd-ports-graphics-c5374af57b740fa19cb5af898706f0fadae21b7a.tar.zst
freebsd-ports-graphics-c5374af57b740fa19cb5af898706f0fadae21b7a.zip
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
Diffstat (limited to 'games/toppler')
-rw-r--r--games/toppler/Makefile46
-rw-r--r--games/toppler/distinfo1
-rw-r--r--games/toppler/files/patch-configure11
-rw-r--r--games/toppler/files/patch-menu.cc30
-rw-r--r--games/toppler/pkg-comment1
-rw-r--r--games/toppler/pkg-descr15
-rw-r--r--games/toppler/pkg-plist15
7 files changed, 119 insertions, 0 deletions
diff --git a/games/toppler/Makefile b/games/toppler/Makefile
new file mode 100644
index 00000000000..48f09f4744a
--- /dev/null
+++ b/games/toppler/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: toppler
+# Date created: 18 Jan 2002
+# Whom: Dom Mitchell <dom@happygiraffe.net>
+#
+# $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|<SDL/SDL|<SDL|g'
+
+post-patch:
+ @${PERL} -pi -e 's|%SCOREDIR%|${SCOREDIR}|g;' \
+ -e 's|%SCOREFILE%|${SCOREFILE}|g' ${WRKSRC}/menu.cc
+
+pre-install:
+ ${MKDIR} ${SCOREDIR}
+
+post-install:
+ ${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
+ ${CHMOD} g+s ${PREFIX}/bin/${PORTNAME}
+ ${TOUCH} ${SCOREDIR}/${SCOREFILE}
+ ${CHMOD} 664 ${SCOREDIR}/${SCOREFILE}
+ ${CHOWN} root:games ${SCOREDIR}/${SCOREFILE}
+
+.include <bsd.port.mk>
diff --git a/games/toppler/distinfo b/games/toppler/distinfo
new file mode 100644
index 00000000000..f6a401e5a2f
--- /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 00000000000..520531aa002
--- /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 00000000000..b85cc1a75a3
--- /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 <stdlib.h>
+
++#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 00000000000..613d7288fbc
--- /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 00000000000..ecfa24259c1
--- /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 00000000000..723747fbb8b
--- /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