freebsd-ports/games/linux-enemyterritory-omni-bot/Makefile
Barbara Guida f0934ba4ae Use space instead of tab after Created by header.
For linux-enemyterritory-omni-bot-0660, also fix check for DOCS.

Approved by:	flo (mentor)
2013-01-20 11:59:32 +00:00

47 lines
1.3 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= omni-bot
PORTVERSION= 0.820
CATEGORIES= games linux
MASTER_SITES= http://www.omni-bot.com/forum/downloads/
PKGNAMEPREFIX= linux-enemyterritory-
DISTNAME= Omni-bot_0.82_ET_Linux
MAINTAINER= bar@FreeBSD.org
COMMENT= Omni-Bot is a bot for Enemy Territory
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
USE_ZIP= yes
USE_LINUX= yes
NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}
do-build:
.for f in et etded
@(${ECHO_CMD} "#!/bin/sh"; \
${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} +set omnibot_path "${DATADIR}" "$$@"') > \
${WRKSRC}/${f}-${PORTNAME}
.endfor
do-install:
.for f in et etded
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
${MV} ${WRKSRC}/omni-bot/et/user/omni-bot.cfg \
${WRKSRC}/omni-bot/et/user/omni-bot.cfg.sample
${CP} -R ${WRKSRC}/omni-bot/* ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/omnibot/qagame.mp.i386.so ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/omnibot/omnibot_et.pk3 ${DATADIR}
post-install:
@if [ ! -f ${DATADIR}/et/user/omni-bot.cfg ]; then \
${CP} -p ${DATADIR}/et/user/omni-bot.cfg.sample \
${DATADIR}/et/user/omni-bot.cfg ; \
fi
.include <bsd.port.mk>