freebsd-ports/games/teeworlds/Makefile
Martin Wilke 723631783a Teewars is a freeware online multiplayer game, designed as a crossover
between Quake and Worms. Set on platform-based maps, players control
a cute little bugger with guns to take out as many opponents as
possible. The characters can jump but move more quickly using a
grappling hook, swinging through the levels. It can also be used
to lock other players to keep them near. The available weapons
include a pistol, shotgun, grenade launcher and a hammer. The
shooting and grappling direction is shown through a cursor, controlled
by the mouse. A special power-up temporarily provides a ninja sword,
used to slash through enemies. Each character has an amount of
health and shield. Items scattered around include additional ammo,
and health and shield bonuses. Unlike Worms, all the action that
happens is fast-paced and happens in real-time. It supports CTF
mode.

WWW: http://www.teewars.com/

PR:		ports/120778
Submitted by:	Dmitry Marakasov <amdmi3 at amdmi3.ru>
2008-02-18 19:52:20 +00:00

69 lines
2 KiB
Makefile

# New ports collection makefile for: teewars
# Date created: 17 Feb 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= teewars
PORTVERSION= 0.3.4
CATEGORIES= games
MASTER_SITES= http://www.teewars.com/files/ \
http://www.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} bam${EXTRACT_SUFX}
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Platform game featuring buggers equipped with weapons
USE_ZIP= yes
USE_PYTHON_BUILD= yes
BAM= ${WRKDIR}/bam.bin
BAM_TARGET= release
OPTIONS= TEEWARS_SERVER_ONLY "Build dedicated server only" off
.include <bsd.port.pre.mk>
.if defined(WITH_TEEWARS_SERVER_ONLY)
BAM_TARGET= server_release
PLIST_SUB+= CLIENT="@comment "
.else
LIB_DEPENDS+= portaudio.2:${PORTSDIR}/audio/portaudio2
USE_GL= yes
PLIST_SUB+= CLIENT=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/default.bam
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/default.bam
@${REINPLACE_CMD} -e 's|\(s.cc.c_compiler = \).*|\1"${CC}"|; \
s|\(s.cc.cxx_compiler = \).*|\1"${CXX}"|; \
s|\(s.cc.flags = \).*|\1"${CFLAGS}"|; \
s|\(s.linker.linker = \).*|\1"${CXX}"|' \
${WRKDIR}/bam/src/base.bam
@${FIND} ${WRKSRC}/src -name "*.c" -o -name "*.cpp" | \
${XARGS} ${REINPLACE_CMD} -e 's|"data/|"${DATADIR}/|g'
@${REINPLACE_CMD} -e 's|"data/|"${DATADIR}/|g' ${WRKSRC}/datasrc/*
# build bam executable - teewars own build system
pre-build:
cd ${WRKDIR}/bam && ${CC} ${CFLAGS} src/tools/txt2c.c -o src/tools/txt2c
cd ${WRKDIR}/bam && src/tools/txt2c < src/base.bam > src/internal_base.h
cd ${WRKDIR}/bam && ${CC} ${CFLAGS} src/lua/src/*.c src/lua/src/lib/*.c \
src/*.c -Isrc/lua/include -o ${BAM} -lm ${PTHREAD_LIBS}
# build teewars
do-build:
cd ${WRKSRC} && ${BAM} ${BAM_TARGET}
do-install:
.if !defined(WITH_TEEWARS_SERVER_ONLY)
${INSTALL_PROGRAM} ${WRKSRC}/teewars ${PREFIX}/bin
.endif
${INSTALL_PROGRAM} ${WRKSRC}/teewars_srv ${PREFIX}/bin
${MKDIR} ${DATADIR}
@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}/
.include <bsd.port.post.mk>