diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-08-02 17:13:33 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-08-02 17:13:33 +0800 |
commit | 6351503ae1728174c0684478acd3b54ee9bfc385 (patch) | |
tree | 7ea8e5a1fa513819bff93f965386079c9d7fc2e2 /games | |
parent | 6159739d78b32bd1b199e93e093b3466ee7fad3d (diff) | |
download | freebsd-ports-gnome-6351503ae1728174c0684478acd3b54ee9bfc385.tar.gz freebsd-ports-gnome-6351503ae1728174c0684478acd3b54ee9bfc385.tar.zst freebsd-ports-gnome-6351503ae1728174c0684478acd3b54ee9bfc385.zip |
Add agame, a simple tetris-like game.
PR: 101171
Submitted by: Dmitry Marakasov <amdmi3 at mail.ru>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/agame/Makefile | 45 | ||||
-rw-r--r-- | games/agame/distinfo | 3 | ||||
-rw-r--r-- | games/agame/files/patch-Makefile | 29 | ||||
-rw-r--r-- | games/agame/pkg-descr | 6 | ||||
-rw-r--r-- | games/agame/pkg-plist | 24 |
6 files changed, 108 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 3d0078e85965..ec04444e0b4f 100644 --- a/games/Makefile +++ b/games/Makefile @@ -25,6 +25,7 @@ SUBDIR += aestats SUBDIR += affenspiel SUBDIR += afternoonstalker + SUBDIR += agame SUBDIR += airrox SUBDIR += alephone SUBDIR += alephone-data diff --git a/games/agame/Makefile b/games/agame/Makefile new file mode 100644 index 000000000000..cab4a770d265 --- /dev/null +++ b/games/agame/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: agame +# Date created: 30 Jul 2006 +# Whom: Dmitry Marakasov <amdmi3@mail.ru> +# +# $FreeBSD$ +# + +PORTNAME= agame +PORTVERSION= 1577 +CATEGORIES= games +MASTER_SITES= http://zevv.nl/code/game/ \ + http://critical.ch/distfiles/ \ + http://energy.critical.ch/distfiles/ +DISTNAME= game-src-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= amdmi3@mail.ru +COMMENT= A simple tetris-like game + +USE_SDL= sdl image mixer +USE_GMAKE= yes + +WRKSRC= ${WRKDIR}/game + +PORTDOCS= README.TXT + +post-patch: + @${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin +.for dir in wav mp3 img + ${MKDIR} ${DATADIR}/${dir} + ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/ +.endfor + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/games/agame/distinfo b/games/agame/distinfo new file mode 100644 index 000000000000..a8b7b7bc4244 --- /dev/null +++ b/games/agame/distinfo @@ -0,0 +1,3 @@ +MD5 (game-src-1577.tgz) = b613ec866571863163581cfd906f1b4b +SHA256 (game-src-1577.tgz) = 9dd586df02ce1501a322e1a19773b25c1ff9a82ed1eee5fbd93053380076bc23 +SIZE (game-src-1577.tgz) = 1220715 diff --git a/games/agame/files/patch-Makefile b/games/agame/files/patch-Makefile new file mode 100644 index 000000000000..18ebebc12cd6 --- /dev/null +++ b/games/agame/files/patch-Makefile @@ -0,0 +1,29 @@ +--- Makefile.orig Fri Jun 9 22:54:24 2006 ++++ Makefile Sun Jul 30 22:11:38 2006 +@@ -3,8 +3,7 @@ + SRC = game.c main.c + VERSION = $(shell svnversion -c . | cut -d : -f 2) + +-CFLAGS += -Wall -Werror -O3 -g +-LDFLAGS += -g -lSDL -lSDL_image -lSDL_mixer ++LDFLAGS += `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer + + ifeq "$(target)" "win32" + +@@ -18,14 +17,13 @@ + else + + BIN += $(NAME) +-CFLAGS += -I/usr/include/SDL ++CFLAGS += `${SDL_CONFIG} --cflags` + + endif + + OBJS += $(subst .c,.o, $(SRC)) + +-CC := $(CROSS)gcc +-LD := $(CROSS)gcc ++LD := $(CC) + STRIP := $(CROSS)strip + WINDRES := $(CROSS)windres + NSIS := makensis diff --git a/games/agame/pkg-descr b/games/agame/pkg-descr new file mode 100644 index 000000000000..0e844d500f92 --- /dev/null +++ b/games/agame/pkg-descr @@ -0,0 +1,6 @@ +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/ diff --git a/games/agame/pkg-plist b/games/agame/pkg-plist new file mode 100644 index 000000000000..f864bbfa4f28 --- /dev/null +++ b/games/agame/pkg-plist @@ -0,0 +1,24 @@ +bin/game +%%DATADIR%%/img/background.png +%%DATADIR%%/img/game.png +%%DATADIR%%/img/game.svg +%%DATADIR%%/img/help.png +%%DATADIR%%/img/help.svg +%%DATADIR%%/img/icon.ico +%%DATADIR%%/img/icon.png +%%DATADIR%%/mp3/track-01.mp3 +%%DATADIR%%/wav/bonus.wav +%%DATADIR%%/wav/bonus2.wav +%%DATADIR%%/wav/earthquake.wav +%%DATADIR%%/wav/explode.wav +%%DATADIR%%/wav/fall.wav +%%DATADIR%%/wav/game_over.wav +%%DATADIR%%/wav/hurry.wav +%%DATADIR%%/wav/new_block.wav +%%DATADIR%%/wav/pause.wav +%%DATADIR%%/wav/score.wav +%%DATADIR%%/wav/start.wav +@dirrm %%DATADIR%%/wav +@dirrm %%DATADIR%%/mp3 +@dirrm %%DATADIR%%/img +@dirrm %%DATADIR%% |