freebsd-ports/games/linux-enemyterritory-omni-bot/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: omni-bot
# Date created: 7 May 2006
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= omni-bot
2009-02-09 03:54:46 +01:00
PORTVERSION= 0.710
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
PKGNAMEPREFIX= linux-enemyterritory-
DISTNAME= ${PORTNAME}-${PORTVERSION:S/0$//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Omni-Bot is a bot for Enemy Territory
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
CONFLICTS= linux-enemyterritory-omni-bot-0.[1-6]*
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}
2009-02-09 03:54:46 +01:00
${CP} -R ${WRKSRC}/omni-bot/* ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/omnibot/qagame.mp.i386.so ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/omnibot/omnibot_et.pk3 ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
2009-02-09 03:54:46 +01:00
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>