1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add zatacka 0.1.4, nibbles-like multiplayer game.

PR:		94982
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
Emanuel Haupt 2006-05-31 13:48:58 +00:00
parent 9715677bb7
commit a463f46fb4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164077
7 changed files with 110 additions and 0 deletions

View File

@ -841,6 +841,7 @@
SUBDIR += yahtzee
SUBDIR += yamsweeper
SUBDIR += zangband
SUBDIR += zatacka
SUBDIR += zephulor
SUBDIR += znibbles
SUBDIR += zoom

49
games/zatacka/Makefile Normal file
View File

@ -0,0 +1,49 @@
# New ports collection makefile for: zatacka
# Date created: 26 Mar 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= zatacka
PORTVERSION= 0.1.4
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}_src
MAINTAINER= amdmi3@mail.ru
COMMENT= Nibbles-like multiplayer game
USE_SDL= sdl ttf image
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/zatacka
MAKE_ARGS= CXX=${CXX}
PORTDOCS= README
post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|font.ttf|${DATADIR}/font.ttf|' ${WRKSRC}/fx.h
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/SDL_prim.h \
${WRKSRC}/fx.h
@${REINPLACE_CMD} -e 's|barrier.jpg|${DATADIR}/barrier.jpg|' \
${WRKSRC}/fx.cpp
@${REINPLACE_CMD} -e 's|main_screen.jpg|${DATADIR}/main_screen.jpg|' \
${WRKSRC}/fx.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/main_screen.jpg ${WRKSRC}/barrier.jpg \
${WRKSRC}/font.ttf ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

3
games/zatacka/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (zatacka-0.1.4_src.tar.gz) = 3c00ea94811eb6886f58c5eac16fc22d
SHA256 (zatacka-0.1.4_src.tar.gz) = 949e96764fbfa5eb1349bd2d1d2cb90dace943090667d117564e0a6cd782cfdb
SIZE (zatacka-0.1.4_src.tar.gz) = 128061

View File

@ -0,0 +1,35 @@
--- Makefile.orig Fri Dec 30 17:27:36 2005
+++ Makefile Mon Mar 27 00:52:59 2006
@@ -4,7 +4,7 @@
# Copryright: GNU GPL (http://www.gnu.org/copyleft/gpl.html)
##----------------------------------------------------------------------------
rm=/bin/rm -f
-CC= g++
+CXX?= g++
DEFS=
PROGNAME= zatacka
INCLUDES= -I.
@@ -12,7 +12,7 @@
DEFINES= $(INCLUDES) $(DEFS) -DSYS_UNIX=1
-CFLAGS= -g $(DEFINES) `sdl-config --cflags`
+CXXFLAGS+= $(DEFINES) `sdl-config --cflags`
SRCS = main.cpp fx.cpp SDL_prim.c
@@ -20,12 +20,12 @@
.c.o:
$(rm) $@
- $(CC) $(CFLAGS) -c $*.c
+ $(CXX) $(CXXFLAGS) -c $*.c
all: $(PROGNAME)
$(PROGNAME) : $(OBJS)
- $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
+ $(CXX) $(CXXFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
clean:
$(rm) $(OBJS) $(PROGNAME) core *~

View File

@ -0,0 +1,11 @@
--- fx.cpp.orig Mon Mar 27 00:43:47 2006
+++ fx.cpp Mon Mar 27 00:47:47 2006
@@ -46,8 +46,6 @@
int i;
char* wd;
- wd=GetAppPath(); //get path to aplication directory
- chdir(wd); //change working directory to aplication directory
if((SDL_Init(SDL_INIT_VIDEO ))==-1){ //initialize SDL library
disperr("Error initializing SDL");

6
games/zatacka/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Multiplayer game for 2-6 players on one keyboard and mouse. You handle your line
using two kays. When you hit any line, barrier or border of game field, you die
and other players get one point each. When leaves only one players in game,
he's a winner an round is finished. Each game has eleven rounds.
WWW: http://zatacka.sourceforge.net/

5
games/zatacka/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
bin/zatacka
%%DATADIR%%/barrier.jpg
%%DATADIR%%/font.ttf
%%DATADIR%%/main_screen.jpg
@dirrm %%DATADIR%%