Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  1 Aug 2006 17:34:45 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@mail.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/101171: [NEW PORT] games/agame A simple Tetris-like game
Message-ID:  <20060801133445.5DC7641EB@hades.panopticon>
Resent-Message-ID: <200608011340.k71DeFKu010490@freefall.freebsd.org>

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

>Number:         101171
>Category:       ports
>Synopsis:       [NEW PORT] games/agame A simple Tetris-like game
>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:   Tue Aug 01 13:40:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu May 11 15:07:32 MSD 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
A simple Tetris-like game.

The objective of the game is to keep the level of colored blocks
down as long as possible. New blocks are falling down at an increasing
rate, blocks can be removed by creating rows of three or more blocks
of the same color. The longer the row, the more points you get.

WWW: http://zevv.nl/code/game/

>How-To-Repeat:
>Fix:

--- agame-1577.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:
#
#	agame
#	agame/distinfo
#	agame/Makefile
#	agame/files
#	agame/files/patch-Makefile
#	agame/pkg-plist
#	agame/pkg-descr
#
echo c - agame
mkdir -p agame > /dev/null 2>&1
echo x - agame/distinfo
sed 's/^X//' >agame/distinfo << 'END-of-agame/distinfo'
XMD5 (game-src-1577.tgz) = b613ec866571863163581cfd906f1b4b
XSHA256 (game-src-1577.tgz) = 9dd586df02ce1501a322e1a19773b25c1ff9a82ed1eee5fbd93053380076bc23
XSIZE (game-src-1577.tgz) = 1220715
END-of-agame/distinfo
echo x - agame/Makefile
sed 's/^X//' >agame/Makefile << 'END-of-agame/Makefile'
X# New ports collection makefile for:	agame
X# Date created:		30 Jul 2006
X# Whom:			Dmitry Marakasov <amdmi3@mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	agame
XPORTVERSION=	1577
XCATEGORIES=	games
XMASTER_SITES=	http://zevv.nl/code/game/
XDISTNAME=	game-src-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	amdmi3@mail.ru
XCOMMENT=	A simple Tetris-like game
X
XUSE_SDL=	sdl image
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/game
X
XPORTDOCS=	README.TXT
X
Xpost-patch:
X	@${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin
X.for dir in wav mp3 img
X	${MKDIR} ${DATADIR}/${dir}
X	${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/
X.endfor
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-agame/Makefile
echo c - agame/files
mkdir -p agame/files > /dev/null 2>&1
echo x - agame/files/patch-Makefile
sed 's/^X//' >agame/files/patch-Makefile << 'END-of-agame/files/patch-Makefile'
X--- Makefile.orig	Fri Jun  9 22:54:24 2006
X+++ Makefile	Sun Jul 30 22:11:38 2006
X@@ -3,8 +3,7 @@
X SRC 	= game.c main.c 
X VERSION = $(shell svnversion -c . | cut -d : -f 2)
X 
X-CFLAGS  += -Wall -Werror -O3 -g 
X-LDFLAGS += -g -lSDL -lSDL_image -lSDL_mixer
X+LDFLAGS += `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer
X 
X ifeq "$(target)" "win32"
X 
X@@ -18,14 +17,13 @@
X else
X 
X BIN	+= $(NAME)
X-CFLAGS	+= -I/usr/include/SDL
X+CFLAGS	+= `${SDL_CONFIG} --cflags`
X 
X endif
X 
X OBJS    += $(subst .c,.o, $(SRC))
X 
X-CC 	:= $(CROSS)gcc
X-LD 	:= $(CROSS)gcc
X+LD 	:= $(CC)
X STRIP 	:= $(CROSS)strip
X WINDRES := $(CROSS)windres
X NSIS	:= makensis
END-of-agame/files/patch-Makefile
echo x - agame/pkg-plist
sed 's/^X//' >agame/pkg-plist << 'END-of-agame/pkg-plist'
Xbin/game
X%%DATADIR%%/img/background.png
X%%DATADIR%%/img/game.png
X%%DATADIR%%/img/game.svg
X%%DATADIR%%/img/help.png
X%%DATADIR%%/img/help.svg
X%%DATADIR%%/img/icon.ico
X%%DATADIR%%/img/icon.png
X%%DATADIR%%/mp3/track-01.mp3
X%%DATADIR%%/wav/bonus.wav
X%%DATADIR%%/wav/bonus2.wav
X%%DATADIR%%/wav/earthquake.wav
X%%DATADIR%%/wav/explode.wav
X%%DATADIR%%/wav/fall.wav
X%%DATADIR%%/wav/game_over.wav
X%%DATADIR%%/wav/hurry.wav
X%%DATADIR%%/wav/new_block.wav
X%%DATADIR%%/wav/pause.wav
X%%DATADIR%%/wav/score.wav
X%%DATADIR%%/wav/start.wav
X@dirrm %%DATADIR%%/wav
X@dirrm %%DATADIR%%/mp3
X@dirrm %%DATADIR%%/img
X@dirrm %%DATADIR%%
END-of-agame/pkg-plist
echo x - agame/pkg-descr
sed 's/^X//' >agame/pkg-descr << 'END-of-agame/pkg-descr'
XA simple Tetris-like game.
X
XThe objective of the game is to keep the level of colored blocks
Xdown as long as possible. New blocks are falling down at an increasing
Xrate, blocks can be removed by creating rows of three or more blocks
Xof the same color. The longer the row, the more points you get.
X
XWWW: http://zevv.nl/code/game/
END-of-agame/pkg-descr
exit
--- agame-1577.shar ends here ---


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



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