mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
efa63f6ba4
FreeBSD versions: 5.3 and up, 6.x, 7.x, 8-CURRENT
85 lines
2.3 KiB
Makefile
85 lines
2.3 KiB
Makefile
# 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>
|