blob: 63967c5dea32a327d2f605ddebaba15f9909d238 (
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
|
# New ports collection makefile for: Return to Castle Wolfenstein
# Date created: Sun Jun 3 00:52:38 EDT 2001
# Whom: nik@freebsd.org
#
# $FreeBSD$
#
PORTNAME= rtcw
PORTVERSION= 1.1b
CATEGORIES= games linux
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/wolf/linux/
DISTNAME= wolf-linux-${PORTVERSION}.x86
EXTRACT_SUFX= .run
MAINTAINER= nik@FreeBSD.org
ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
NO_CDROM= "Size; the data set is much too big"
NO_BUILD= yes
NO_WRKSUBDIR= yes
RTCWDIR= usr/games/rtcw
PLIST_SUB+= RTCWDIR="${RTCWDIR}"
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && tail +175 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAR} zxvf - >/dev/null
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
do-install:
${INSTALL_DIR} ${PREFIX}/${RTCWDIR}
.for file in CHANGES INSTALL QUICKSTART WolfMP.xpm WolfSP.xpm
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${RTCWDIR}
.endfor
.for file in openurl.sh
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/${RTCWDIR}
.endfor
.for file in wolf.x86 wolfded.x86 wolfsp.x86
${INSTALL} -c -m 500 ${WRKSRC}/bin/x86/${file} ${PREFIX}/${RTCWDIR}
.endfor
${INSTALL_DIR} ${PREFIX}/${RTCWDIR}/main
.for file in cgame.mp.i386.so cgamei386.so mp_pakmaps0.pk3 qagame.mp.i386.so qagamei386.so rotate.cfg ui.mp.i386.so uii386.so
${INSTALL_DATA} ${WRKSRC}/main/${file} ${PREFIX}/${RTCWDIR}/main
.endfor
${INSTALL_DIR} ${PREFIX}/${RTCWDIR}/main/scripts
${INSTALL_DATA} ${WRKSRC}/main/scripts/translation.cfg ${PREFIX}/${RTCWDIR}/main/scripts
# XXX Should really install the Docs/ directory as well
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|