ports/88769: New port: games/torrent Score points without letting the tiles touch the top of the board

Dmitry Marakasov amdmi3 at mail.ru
Thu Nov 10 02:50:29 UTC 2005


>Number:         88769
>Category:       ports
>Synopsis:       New port: games/torrent Score points without letting the tiles touch the top of the board
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 10 02:50:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Tue Nov 8 08:55:44 MSK 2005 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
You must keep the tiles from piling up to the top of the board or
they will crash down on you. But be warned they keep coming and
they come faster each time. Click on groups of three or more to
remove tiles. Additional "helper" tiles are given occasionally to
assist and some times hinder in the removal of tiles.

WWW: http://www.shiftygames.com/torrent/torrent.html
>How-To-Repeat:
>Fix:

--- torrent-0.8.2.shar begins here ---
# 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:
#
#	torrent
#	torrent/files
#	torrent/files/patch-src-torrent.c
#	torrent/files/patch-src-sound.c
#	torrent/Makefile
#	torrent/distinfo
#	torrent/pkg-descr
#	torrent/pkg-plist
#
echo c - torrent
mkdir -p torrent > /dev/null 2>&1
echo c - torrent/files
mkdir -p torrent/files > /dev/null 2>&1
echo x - torrent/files/patch-src-torrent.c
sed 's/^X//' >torrent/files/patch-src-torrent.c << 'END-of-torrent/files/patch-src-torrent.c'
X--- src/torrent.c.orig	Thu May  6 05:36:46 2004
X+++ src/torrent.c	Thu Nov 10 05:28:51 2005
X@@ -328,6 +328,8 @@
X 	int x, y;
X 
X 	if(++level > LEVELSIZE) {
X+		int y;
X+
X 		level--; //to keep from showing -1 on board
X 		playSound(levelOverSound);
X 		stateChanged = 1;
X@@ -340,10 +342,11 @@
X 		
X 
X 		// Count number of empty layers and remaining blocks
X-		for(int y = 0; y < yBSize; y++) {
X+		for(y = 0; y < yBSize; y++) {
X+			int x;
X 			int start = remaining;
X 			
X-			for(int x = 0; x < xBSize; x++) {
X+			for(x = 0; x < xBSize; x++) {
X 				if(board[y][x])
X 					remaining++;
X 			}
X@@ -693,10 +696,10 @@
X {
X 	static char odd = 0;
X 	if((scoreAdd || scoreTexts) && !drawing) {
X+		struct scoreText * t = scoreTexts;
X 		odd = !odd;
X 		drawing = 1;
X 		/* draw the text scores */
X-		struct scoreText * t = scoreTexts;
X 		while(t && odd) {
X 			SE_Redraw();
X 			drawing = 0;
X@@ -857,9 +860,9 @@
X  ****************************************************/
X int clickBomb(enum Color color, enum Color bombColor)
X {
X+	int c = 0, x, y;
X 	playSound(bombClickSound);
X 	isBomb = 1;
X-	int c = 0, x, y;
X 	for(y = 0; y < yBSize; y++) {
X 		for(x = 0; x < xBSize; x++) {
X 			if(board[y][x] && (board[y][x]->color == color ||
END-of-torrent/files/patch-src-torrent.c
echo x - torrent/files/patch-src-sound.c
sed 's/^X//' >torrent/files/patch-src-sound.c << 'END-of-torrent/files/patch-src-sound.c'
X--- src/sound.c.orig	Wed Mar  3 04:03:54 2004
X+++ src/sound.c	Thu Nov 10 05:29:19 2005
X@@ -46,12 +46,13 @@
X Mix_Chunk * loadSound(const char * name)
X {
X 	Mix_Chunk * temp;
X+	char * newname;
X 	int len1 = strlen(sg_data_path), len2 = strlen(name);
X 
X 	if(disabled)
X 		return NULL;
X 
X-	char * newname = (char*)malloc(len1 + len2 + 1);
X+	newname = (char*)malloc(len1 + len2 + 1);
X 	if(newname == NULL) {
X 		fprintf(stderr, "Out of memory!\n");
X 		exit(1);
END-of-torrent/files/patch-src-sound.c
echo x - torrent/Makefile
sed 's/^X//' >torrent/Makefile << 'END-of-torrent/Makefile'
X# New ports collection makefile for:	torrent
X# Date created:		10 Nov 2005
X# Whom:			Dmitry Marakasov <amdmi3 at mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	torrent
XPORTVERSION=	0.8.2
XCATEGORIES=	games
XMASTER_SITES=	http://www.shiftygames.com/torrent/
X
XMAINTAINER=	amdmi3 at mail.ru
XCOMMENT=	Score points without letting the tiles touch the top of the board
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XUSE_SDL=	sdl mixer image ttf
X
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	LDFLAGS="`${SDL_CONFIG} --libs`" \
X		CPPFLAGS="`${SDL_CONFIG} --cflags`" \
X		SDL_CONFIG="${SDL_CONFIG}"
X
XMAN6=		torrent.6
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|SDL/|SDL11/|g; s|-std=gnu99 ||g' ${WRKSRC}/configure
X
X.include <bsd.port.mk>
END-of-torrent/Makefile
echo x - torrent/distinfo
sed 's/^X//' >torrent/distinfo << 'END-of-torrent/distinfo'
XMD5 (torrent-0.8.2.tar.gz) = ae295ac6ed6c3df42bca9423d99e065d
XSIZE (torrent-0.8.2.tar.gz) = 555686
END-of-torrent/distinfo
echo x - torrent/pkg-descr
sed 's/^X//' >torrent/pkg-descr << 'END-of-torrent/pkg-descr'
XYou must keep the tiles from piling up to the top of the board or
Xthey will crash down on you. But be warned they keep coming and
Xthey come faster each time. Click on groups of three or more to
Xremove tiles. Additional "helper" tiles are given occasionally to
Xassist and some times hinder in the removal of tiles.
X
XWWW: http://www.shiftygames.com/torrent/torrent.html
END-of-torrent/pkg-descr
echo x - torrent/pkg-plist
sed 's/^X//' >torrent/pkg-plist << 'END-of-torrent/pkg-plist'
Xbin/torrent
X%%DATADIR%%/fonts/amerdreams.ttf
X%%DATADIR%%/pics/help.png
X%%DATADIR%%/pics/main.png
X%%DATADIR%%/pics/set1/blank.png
X%%DATADIR%%/pics/set1/blue.png
X%%DATADIR%%/pics/set1/blue_bomb.png
X%%DATADIR%%/pics/set1/gold.png
X%%DATADIR%%/pics/set1/gold_bomb.png
X%%DATADIR%%/pics/set1/green.png
X%%DATADIR%%/pics/set1/green_bomb.png
X%%DATADIR%%/pics/set1/purple.png
X%%DATADIR%%/pics/set1/purple_bomb.png
X%%DATADIR%%/pics/set1/red.png
X%%DATADIR%%/pics/set1/red_bomb.png
X%%DATADIR%%/pics/sg_icon.png
X%%DATADIR%%/pics/shiftygames.png
X%%DATADIR%%/pics/sound_high.png
X%%DATADIR%%/pics/sound_low.png
X%%DATADIR%%/pics/sound_medium.png
X%%DATADIR%%/sounds/bomb.ogg
X%%DATADIR%%/sounds/bonus.ogg
X%%DATADIR%%/sounds/cheering.ogg
X%%DATADIR%%/sounds/click.ogg
X%%DATADIR%%/sounds/gameover.ogg
X%%DATADIR%%/sounds/levelover.ogg
X%%DATADIR%%/sounds/over.ogg
X at dirrm %%DATADIR%%/fonts
X at dirrm %%DATADIR%%/pics/set1
X at dirrm %%DATADIR%%/pics
X at dirrm %%DATADIR%%/sounds
X at dirrm %%DATADIR%%
END-of-torrent/pkg-plist
exit
--- torrent-0.8.2.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list