mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# New ports collection makefile for: quake2-ctf
|
|
# Date created: 26 Jul 2006
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ctf
|
|
PORTVERSION= 1.52
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|:data|} \
|
|
http://offload1.icculus.org/quake2/files/:src
|
|
MASTER_SITE_SUBDIR= quake2/ctf/:data
|
|
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
|
|
DISTFILES= ${CTF_DATA}:data \
|
|
${CTF_SRC}:src
|
|
DIST_SUBDIR= quake2lnx
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Quake II CTF (Capture The Flag) modification
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= ../../../ctf/readme.txt ../../../ctf/server.cfg
|
|
WRKSRC= ${WRKDIR}/${CTF_SRC:S/.tar.gz//}/src/ctf
|
|
|
|
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
|
|
DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
|
|
|
|
CTF_DATA= q2ctf150.zip
|
|
CTF_SRC= quake2-r0.16.2.tar.gz
|
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${CTF_SRC} -C ${WRKDIR} \
|
|
--include "${CTF_SRC:S/.tar.gz//}/src/ctf/*"
|
|
@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} -d ${WRKDIR}/ctf \
|
|
${DISTDIR}/${DIST_SUBDIR}/${CTF_DATA} -x *.dll *.ico
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
|
|
|
|
do-install:
|
|
${MKDIR} ${Q2DIR}/ctf
|
|
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/ctf
|
|
.for f in *.cfg *.pak
|
|
${INSTALL_DATA} ${WRKDIR}/ctf/${f} ${Q2DIR}/ctf
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/ctf/readme.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|