blob: 962c7a834928223bdbab2875282c6dece8110b35 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: Enemy Territory Fortress
# Date created: 25 Mar 2005
# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= enemyterritory-fortress
PORTVERSION= 1.4
CATEGORIES= games linux
MASTER_SITES= http://ftp.games.skynet.be/pub/wolfenstein/etf/ \
http://www.playlinux.net/pub/files/native/
PKGNAMEPREFIX= linux-
DISTNAME= etf_${PORTVERSION}-english-2
EXTRACT_SUFX= .run
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A class-based teamplay modification for Enemy Territory
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
ONLY_FOR_ARCHS= i386
PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
USE_LINUX= yes
NO_PACKAGE= Distfile is 249MB, set FORCE_PACKAGE if you really want to build this package
RESTRICTED= Redistribution is limited, see license
NO_WRKSUBDIR= yes
ETDIR= ${PREFIX}/lib/enemyterritory
do-extract:
@${MKDIR} ${WRKSRC}
@(cd ${WRKSRC} && \
${TAIL} -c +8497 ${DISTDIR}/${DISTFILES} | ${TAR} zxf - && \
${TAR} zxf etf.tar.gz && \
${TAR} zxf cfgnormal.tar.gz)
do-build:
.for f in et etded
@${ECHO} '#!/bin/sh' > ${WRKSRC}/${f}-fortress
@${ECHO} 'exec ${PREFIX}/bin/${f} +set fs_game etf "$$@"' >> ${WRKSRC}/${f}-fortress
.endfor
do-install:
.for f in et etded
${INSTALL_SCRIPT} ${WRKSRC}/${f}-fortress ${PREFIX}/bin
.endfor
${MKDIR} ${ETDIR}/etf
.for f in autoexec.cfg etconfig.cfg etf_dissect.pk3 etf_pak0.pk3 \
etf_pak1.pk3 etf_pak2.pk3 etf_pak3.pk3 etf_server.cfg \
mp_bin.pk3 preset_normal.cfg servercache.dat
${INSTALL_DATA} ${WRKSRC}/etf/${f} ${ETDIR}/etf
.endfor
.for f in cgame.mp.i386.so omnibot_etf.so qagame.mp.i386.so ui.mp.i386.so
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${WRKSRC}/etf/${f} \
${ETDIR}/etf
.endfor
.for d in classconfigs nav scripts ui/usermenu video
${MKDIR} ${ETDIR}/etf/${d}
${INSTALL_DATA} ${WRKSRC}/etf/${d}/* ${ETDIR}/etf/${d}
.endfor
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etf.xpm ${DATADIR}
${MKDIR} ${EXAMPLESDIR}/sample_server
.for f in sample_server.cfg sample_srv/*
${INSTALL_DATA} ${WRKSRC}/etf/${f} ${EXAMPLESDIR}/sample_server
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in LICENSE README etf/ChangeLog
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|