2006-05-11 21:06:40 +02:00
|
|
|
# New ports collection makefile for: omni-bot
|
|
|
|
# Date created: 7 May 2006
|
|
|
|
# Whom: alepulver
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= omni-bot
|
2011-12-03 19:54:00 +01:00
|
|
|
PORTVERSION= 0.810
|
2012-01-24 22:31:36 +01:00
|
|
|
PORTREVISION= 1
|
2006-05-11 21:06:40 +02:00
|
|
|
CATEGORIES= games linux
|
2011-12-03 19:54:00 +01:00
|
|
|
MASTER_SITES= http://www.omni-bot.com/forum/downloads/
|
2006-05-11 21:06:40 +02:00
|
|
|
PKGNAMEPREFIX= linux-enemyterritory-
|
2011-12-03 19:54:00 +01:00
|
|
|
DISTNAME= Omni-bot_0.81_ET_Linux
|
2006-05-11 21:06:40 +02:00
|
|
|
|
2011-12-03 19:54:00 +01:00
|
|
|
MAINTAINER= barbara.xxx1975@libero.it
|
2006-05-11 21:06:40 +02:00
|
|
|
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
|
|
|
|
|
2007-12-19 21:51:42 +01:00
|
|
|
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}
|
2006-05-11 21:06:40 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for f in et etded
|
2007-12-19 21:51:42 +01:00
|
|
|
@(${ECHO_CMD} "#!/bin/sh"; \
|
2008-02-19 14:20:31 +01:00
|
|
|
${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} +set omnibot_path "${DATADIR}" "$$@"') > \
|
2006-05-11 21:06:40 +02:00
|
|
|
${WRKSRC}/${f}-${PORTNAME}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for f in et etded
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${PREFIX}/bin
|
|
|
|
.endfor
|
2007-12-19 21:51:42 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
2009-02-09 03:54:46 +01:00
|
|
|
${CP} -R ${WRKSRC}/omni-bot/* ${DATADIR}
|
2007-12-19 21:51:42 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/omnibot/qagame.mp.i386.so ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/omnibot/omnibot_et.pk3 ${DATADIR}
|
2011-12-03 19:54:00 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${DATADIR}/et/user/omni-bot.cfg ]; then \
|
|
|
|
${CP} -p ${DATADIR}/et/user/omni-bot.txt ${DATADIR}/et/user/omni-bot.cfg ; \
|
|
|
|
fi
|
2006-05-11 21:06:40 +02:00
|
|
|
|
2006-10-08 21:04:16 +02:00
|
|
|
.include <bsd.port.mk>
|