blob: ab7c6166d66c2459ed35009b7b4bed1b6f33c90e (
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
80
81
82
83
84
|
# New ports collection makefile for: quake2-3zb2
# Date created: 2006-12-24
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= 3zb2
PORTVERSION= 0.97
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.angelfire.com/mt2/quakebots/:prog \
http://ponpoko.tri6.net/3zb2/routes/:nodes
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:U}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:prog \
${PORTNAME}src${PORTVERSION:S/0.//}${EXTRACT_SUFX}:prog
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= 3rd-Zigock Bot II for Quake II
USE_ZIP= yes
USE_DOS2UNIX= *.[ch]
NO_WRKSUBDIR= yes
OPTIONS= NODES "Install nodes for DM and CTF maps (recommended)" on
SUB_FILES= pkg-message
DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.pre.mk>
.if defined(WITH_NODES)
NODES= base_pk citycl_pk cmbbstr_pk cxdmx_pk cxxdmx_pk dm64_pk \
fact_pk hangar_pk ikdmx_pk2 jail_pk retinal_pk spasmox_pk \
trdmx_pk trpower_pk verm0x_pk ware_pk waste_pk xatrixmap_pk1 \
xatrixmap_pk2 xatrixmap_pk3 xatrixmap_pk4 xdm3 xldmx_pk \
ztn2dmx_pk chflm2130_pk chfxmap0109_pk
.for f in ${NODES}
DISTFILES+= ${f}${EXTRACT_SUFX}:nodes
.endfor
PLIST_SUB+= NODES=""
.else
PLIST_SUB+= NODES="@comment "
.endif
post-extract:
# Rename files and directories to lower case.
@cd ${WRKSRC}; \
for f in *; do \
${MV} $${f} `${ECHO_CMD} $${f} | ${TR} '[:upper:]' '[:lower:]'`; \
done
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
do-install:
${MKDIR} ${Q2DIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME}
cd ${WRKSRC}/3zb2 && \
${INSTALL_DATA} *.cfg 3ZBMaps.lst pak6.pak ${Q2DIR}/${PORTNAME}
.for f in chctf chdtm
${MKDIR} ${Q2DIR}/${PORTNAME}/${f}
${INSTALL_DATA} ${WRKSRC}/3zb2/${f}/* ${Q2DIR}/${PORTNAME}/${f}
.endfor
.if defined(WITH_NODES)
${INSTALL_DATA} ${WRKSRC}/*.chn ${Q2DIR}/${PORTNAME}/chdtm
${INSTALL_DATA} ${WRKSRC}/*.chf ${Q2DIR}/${PORTNAME}/chctf
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/3zb2 && ${CP} -R *.txt "User Guide" ${DOCSDIR}
@${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
@${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
.endif
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|