Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2002 11:26:06 +0000 (GMT)
From:      Dominic Mitchell <dom@happygiraffe.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34119: new port: games/toppler
Message-ID:  <20020119112606.2ADDE5F74@cathbad.happygiraffe.net>

next in thread | raw e-mail | index | archive | help

>Number:         34119
>Category:       ports
>Synopsis:       new port: games/toppler
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 21 07:10:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dominic Mitchell
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The HappyGiraffe Institute for Happy Giraffes
>Environment:
System: FreeBSD cathbad.happygiraffe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Mon Jan 14 12:44:19 GMT 2002 root@cathbad.happygiraffe.net:/usr/obj/usr/src/sys/CATHBAD i386


	SDL-1.2.3_1
>Description:
	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.
>How-To-Repeat:
	n/a
>Fix:

	Here's the shar

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	toppler
#	toppler/Makefile
#	toppler/distinfo
#	toppler/pkg-descr
#	toppler/pkg-comment
#	toppler/pkg-plist
#	toppler/files
#	toppler/files/patch-configure
#	toppler/files/patch-menu.cc
#
echo c - toppler
mkdir -p toppler > /dev/null 2>&1
echo x - toppler/Makefile
sed 's/^X//' >toppler/Makefile << 'END-of-toppler/Makefile'
X# New ports collection makefile for:	toppler
X# Date created:				18 Jan 2002
X# Whom:					Dom Mitchell <dom@happygiraffe.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	toppler
XPORTVERSION=	0.71
XCATEGORIES=	games
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	toppler
X
XMAINTAINER=	dom@happygiraffe.net
X
XLIB_DEPENDS=	SDL-1.1.3:${PORTSDIR}/devel/sdl12
X
XSDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"
X
XSCOREDIR?=	/var/games/${PORTNAME}
XSCOREFILE?=	${PORTNAME}.hscr
X
Xpre-patch:
X	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
X	@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \
X		xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
X
Xpost-patch:
X	@${PERL} -pi -e 's|%SCOREDIR%|${SCOREDIR}|g;' \
X		-e 's|%SCOREFILE%|${SCOREFILE}|g' ${WRKSRC}/menu.cc
X
Xpre-install:
X	${MKDIR} ${SCOREDIR}
X
Xpost-install:
X	${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
X	${CHMOD} g+s ${PREFIX}/bin/${PORTNAME}
X	${TOUCH} ${SCOREDIR}/${SCOREFILE}
X	${CHMOD} 664 ${SCOREDIR}/${SCOREFILE}
X	${CHOWN} root:games ${SCOREDIR}/${SCOREFILE}
X
X.include <bsd.port.mk>
END-of-toppler/Makefile
echo x - toppler/distinfo
sed 's/^X//' >toppler/distinfo << 'END-of-toppler/distinfo'
XMD5 (toppler-0.71.tar.gz) = cdaa3dd91cfa2938ffa3979ed03f7f4f
END-of-toppler/distinfo
echo x - toppler/pkg-descr
sed 's/^X//' >toppler/pkg-descr << 'END-of-toppler/pkg-descr'
XThe target of the game is to reach the target door of each of the 8
Xtowers in currently 2 missions with this little green animal. This
Xdoor is usually at the very top of the tower.
X
XBut finding the way by using elevators and walking trough a maze of
Xdoors and platforms is not the only problem you have to solve. There
Xis a bunch of other creatures living on the tower that will hinder
Xyou to reach your target by pushing you over the edge of the
Xplatforms.
X
XThe only weapon of defence you have is to throw a little snowball. But
Xmost of the other creatures just don't care about this. So you must
Xavoid them.
X
XWWW: http://toppler.sf.net/
END-of-toppler/pkg-descr
echo x - toppler/pkg-comment
sed 's/^X//' >toppler/pkg-comment << 'END-of-toppler/pkg-comment'
XA game where you have to climb the tower and avoid the monsters
END-of-toppler/pkg-comment
echo x - toppler/pkg-plist
sed 's/^X//' >toppler/pkg-plist << 'END-of-toppler/pkg-plist'
Xbin/toppler
Xshare/toppler/boing.wav
Xshare/toppler/bubbles.wav
Xshare/toppler/hit.wav
Xshare/toppler/honk.wav
Xshare/toppler/layer1.tga
Xshare/toppler/layer2.tga
Xshare/toppler/layer3.tga
Xshare/toppler/nebulous.dat
Xshare/toppler/splash.wav
Xshare/toppler/swosh.wav
Xshare/toppler/tap.wav
Xshare/toppler/tick.wav
Xshare/toppler/water.wav
X@dirrm share/toppler
END-of-toppler/pkg-plist
echo c - toppler/files
mkdir -p toppler/files > /dev/null 2>&1
echo x - toppler/files/patch-configure
sed 's/^X//' >toppler/files/patch-configure << 'END-of-toppler/files/patch-configure'
X--- configure.orig	Sat Jan 19 09:55:17 2002
X+++ configure	Sat Jan 19 09:54:37 2002
X@@ -1167,7 +1167,7 @@
X   rm -f conf.sdltest
X 
X CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
X-LIS="$LIBS $SDL_LIBS"
X+LIBS="$LIBS $SDL_LIBS"
X 
X echo $ac_n "checking for main in -lSDL_mixer""... $ac_c" 1>&6
X echo "configure:1174: checking for main in -lSDL_mixer" >&5
END-of-toppler/files/patch-configure
echo x - toppler/files/patch-menu.cc
sed 's/^X//' >toppler/files/patch-menu.cc << 'END-of-toppler/files/patch-menu.cc'
X--- menu.cc.orig	Sat Jan 19 11:08:41 2002
X+++ menu.cc	Sat Jan 19 11:11:09 2002
X@@ -10,6 +10,9 @@
X 
X #include <stdlib.h>
X 
X+#define SCOREDIR	"%SCOREDIR%"
X+#define SCOREFILE	"%SCOREFILE%"
X+
X static unsigned short menupicture, titledata;
X static unsigned char currentmission = 0;
X 
X@@ -175,7 +178,7 @@
X static void getscores() {
X   char n[300];
X 
X-  sprintf(n, "%s/nebulous.hsc", getenv("HOME"));
X+  sprintf(n, "%s/%s", SCOREDIR, SCOREFILE);
X   FILE *f = fopen(n, "rb");
X 
X   if (f) {
X@@ -195,7 +198,7 @@
X static void savescores() {
X   char n[300];
X 
X-  sprintf(n, "%s/nebulous.hsc", getenv("HOME"));
X+  sprintf(n, "%s/%s", SCOREDIR, SCOREFILE);
X 
X   FILE *f = fopen(n, "r+b");
X 
END-of-toppler/files/patch-menu.cc
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020119112606.2ADDE5F74>