freebsd-ports/games/quake2-ctf/Makefile
Mathieu Arnold 21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
# $FreeBSD$
PORTNAME= ctf
PORTVERSION= 1.52
CATEGORIES= games
MASTER_SITES= IDSOFTWARE/quake2/ctf/:data \
http://offload1.icculus.org/quake2/files/:src
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
DISTFILES= ${CTF_DATA}:data ${CTF_SRC}:src
DIST_SUBDIR= quake2lnx
MAINTAINER= danfe@FreeBSD.org
COMMENT= Quake II CTF (Capture The Flag) mod
USES= dos2unix zip:infozip
DOS2UNIX_FILES= ../../../ctf/readme.txt ../../../ctf/server.cfg
WRKSRC= ${WRKDIR}/${CTF_SRC:S/.tar.gz//}/src/ctf
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
CTF_DATA= q2ctf150.zip
CTF_SRC= quake2-r0.16.2.tar.gz
OPTIONS_DEFINE= DOCS
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.options.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} ${STAGEDIR}${Q2DIR}/ctf
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/ctf
.for f in *.cfg *.pak
${INSTALL_DATA} ${WRKDIR}/ctf/${f} ${STAGEDIR}${Q2DIR}/ctf
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/ctf/readme.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>