2013-07-12 15:01:45 +00:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2008-12-31 21:00:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= linwarrior
|
2010-04-13 23:43:09 +00:00
|
|
|
PORTVERSION= 20100320
|
2013-01-23 15:00:18 +00:00
|
|
|
PORTREVISION= 2
|
2008-12-31 21:00:08 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.hackcraft.de/games/linwarrior_3d/downloads/ \
|
2009-07-28 16:34:36 +00:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2008-12-31 21:00:08 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Navigate a mech through a 3D world and fire at enemies
|
|
|
|
|
2013-12-25 23:29:34 +00:00
|
|
|
USES= gmake openal:al,alut
|
2008-12-31 21:00:08 +00:00
|
|
|
USE_GL= gl glu
|
2009-02-17 21:55:49 +00:00
|
|
|
USE_SDL= sdl
|
2008-12-31 21:00:08 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2013-10-30 14:57:19 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
PORTDATA= *
|
|
|
|
|
2009-09-11 21:57:40 +00:00
|
|
|
DESKTOP_ENTRIES="LinWarrior 3D" \
|
|
|
|
"Mech Simulation Game" \
|
|
|
|
"" \
|
|
|
|
"linwarrior" \
|
|
|
|
"Game;ActionGame;Simulation;" \
|
|
|
|
false
|
|
|
|
|
2010-04-13 23:43:09 +00:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -type d -exec chmod a+rx {} \;
|
|
|
|
@${FIND} ${WRKSRC} -type f -exec chmod a+r {} \;
|
|
|
|
|
2009-02-17 21:55:49 +00:00
|
|
|
post-patch:
|
2010-04-13 23:43:09 +00:00
|
|
|
@${REINPLACE_CMD} -e '/hash_set/ d' ${WRKSRC}/source/cAlert.h
|
|
|
|
@${FIND} ${WRKSRC}/source -name '*.cpp' -print0 | ${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e 's|data/|${DATADIR}/|'
|
2008-12-31 21:00:08 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-12-16 18:18:07 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dist/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
|
2008-12-31 21:00:08 +00:00
|
|
|
|
2010-04-15 00:14:18 +00:00
|
|
|
.include <bsd.port.mk>
|