04c133194e
TetriNET is an addictive 6 player tetr*s game What this program does is set up a TetriNET server that ordinary TetriNET clients can connect to. It attempts to fix some of the "glaring" holes in the TetriNET protocol that I discovered, and which I'm sure some people use as cheats, but I now see why it is nearly impossible to fix ;), without a modification to the client. I've kept the server as close to the same as the original TetriNET server, but I've added some extras that I've often wanted, such as the "/kick" and "/ban" keywords. Please note this server in no way encompasses the whole game. The clients are the ones that do most of the work, with the server just passing suitable packets between each client, and of course adding some of its own. Author: Brendan Grieve (brg@cheerful.com) Packaged by David Ferlier.
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2006/02/14 17:03:54 rillig Exp $
|
|
|
|
DISTNAME= tetrinetx-1.13.16+qirc-1.40c
|
|
PKGNAME= tetrinetx-1.13.16
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://tetrinetx.sourceforge.net/
|
|
|
|
MAINTAINER= david@netbsd-fr.org
|
|
HOMEPAGE= ${MASTER_SITES}
|
|
COMMENT= Server for an addictive 6 player tetris game
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
SHAREDIR= ${PREFIX}/share/tetrinetx
|
|
BINARY= tetrix.netbsd
|
|
RCD_SCRIPTS= tetrinetx
|
|
|
|
LIBS.SunOS+= -lsocket -lnsl -lresolv
|
|
|
|
do-build:
|
|
cd ${WRKSRC:Q}/src && \
|
|
${CC} \
|
|
${CPPFLAGS} -I${LOCALBASE:Q}/include \
|
|
-DSHAREDIR=\"${SHAREDIR:Q}\" -DPREFIX=\"${PREFIX:Q}\" \
|
|
${CFLAGS} -fno-strength-reduce -Wall \
|
|
${LDFLAGS} -L${LOCALBASE:Q}/lib -ladns ${LIBS} \
|
|
-o ../bin/${BINARY:Q} -Wl,-R${LOCALBASE:Q}/lib \
|
|
main.c
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${SHAREDIR}
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/rc.d
|
|
${INSTALL_PROGRAM} ${WRKSRC:Q}/bin/${BINARY:Q} ${PREFIX:Q}/bin/tetrix
|
|
${INSTALL_DATA} ${WRKSRC:Q}/bin/game.conf ${SHAREDIR:Q}
|
|
${INSTALL_DATA} ${WRKSRC:Q}/bin/game.secure ${SHAREDIR:Q}
|
|
${INSTALL_DATA} ${WRKSRC:Q}/bin/game.motd ${SHAREDIR:Q}
|
|
${INSTALL_DATA} ${WRKSRC:Q}/bin/game.pmotd ${SHAREDIR:Q}
|
|
${INSTALL_SCRIPT} ${FILESDIR:Q}/tetrinetx ${PREFIX:Q}/share/examples/rc.d/
|
|
|
|
.include "../../net/adns/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|