1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/quake2-source/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

73 lines
1.9 KiB
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= source
PORTVERSION= 3.21
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://offload1.icculus.org/quake2/files/:icc \
IDSOFTWARE/quake2/source/:id
PKGNAMEPREFIX= quake2-
DISTNAME= quake2-r0.16.2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:icc
DIST_SUBDIR= quake2lnx
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Quake II game source
NO_BUILD= yes
OPTIONS_DEFINE= CTF ROGUE XATRIX
CTF_DESC= Capture The Flag mod source
ROGUE_DESC= Ground Zero (Rogue) mission pack source
XATRIX_DESC= Reckoning (Xatrix) mission pack source
OPTIONS_SUB= yes
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MROGUE}
DISTFILES+= roguesrc320.shar.Z:id
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_rogue_g__local.h \
${FILESDIR}/extra-patch-src_rogue_q__shared.c
ROGUE_OFF= 454
.endif
.if ${PORT_OPTIONS:MXATRIX}
DISTFILES+= xatrixsrc320.shar.Z:id
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_xatrix_q__shared.c
XATRIX_OFF= 441
.endif
post-extract:
.for f in rogue xatrix
. if ${PORT_OPTIONS:M${f:tu}}
@${MKDIR} ${WRKSRC}/src/${f}
@(cd ${WRKSRC}/src/${f} && ${GUNZIP_CMD} -c \
${DISTDIR}/${DIST_SUBDIR}/${f}src320.shar.Z > \
${f}src320.shar && \
${TAIL} +${${f:tu}_OFF} ${f}src320.shar | ${SH})
. endif
.endfor
pre-install:
@${FIND} -E ${WRKSRC} -type f -iregex \
"(Makefile|.*\.(def|dsp|orig|shar))" -print0 | \
${XARGS} -0 ${RM}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -R ${WRKSRC}/src/game ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${FILESDIR}/Makefile.game ${STAGEDIR}${DATADIR}/game/Makefile
.for f in ctf rogue xatrix
. if ${PORT_OPTIONS:M${f:tu}}
${CP} -R ${WRKSRC}/src/${f} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${FILESDIR}/Makefile.${f} ${STAGEDIR}${DATADIR}/${f}/Makefile
. endif
.endfor
.include <bsd.port.mk>