aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-enemyterritory-omni-bot-0660/Makefile
blob: 386ee0147aa68b50310528ad641eb9afe79fba55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    omni-bot
# Date created:             7 May 2006
# Whom:                 alepulver
#
# $FreeBSD$
#

PORTNAME=   omni-bot
PORTVERSION=    0.660
CATEGORIES= games linux
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
PKGNAMEPREFIX=  linux-enemyterritory-
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/0$//}

MAINTAINER= barbara.xxx1975@libero.it
COMMENT=    Omni-Bot is a bot for Enemy Territory

RUN_DEPENDS=    et:${PORTSDIR}/games/linux-enemyterritory

CONFLICTS=  linux-enemyterritory-omni-bot-0.[7-9]*
NO_LATEST_LINK= yes

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}
    ${INSTALL_PROGRAM} ${WRKSRC}/omni-bot/omnibot_et.so ${DATADIR}
    cd ${WRKSRC}/omni-bot && ${CP} -R et global_scripts ${DATADIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/omnibot/qagame.mp.i386.so ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/omnibot/omnibot_et.pk3 ${DATADIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.   for f in *.txt omni-bot/*.txt
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.   endfor
    ${CP} -R ${WRKSRC}/omni-bot/docs ${DOCSDIR}
.endif

.include <bsd.port.mk>