mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
113 lines
2.7 KiB
Makefile
113 lines
2.7 KiB
Makefile
# New ports collection makefile for: Quake 3 Arena Dedicated Server
|
|
# Date created: Sun Jun 3 00:52:38 EDT 2001
|
|
# Whom: pat@databits.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= quake3
|
|
PORTVERSION= 1.32c
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|quake3/linux/:data|} \
|
|
${MASTER_SITE_IDSOFTWARE:S|$|quake3/:patch|}
|
|
PKGNAMEPREFIX= linux-
|
|
DISTFILES= ${Q3DATAFILE}:data \
|
|
${Q3PATCHFILE}:patch
|
|
DIST_SUBDIR= ${Q3PKGNAMEPREFIX}data
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Quake III Arena for Linux
|
|
|
|
USE_ZIP= yes
|
|
USE_LINUX= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
OPTIONS_MULTI= TYPE
|
|
OPTIONS_MULTI_TYPE= CLIENT DEDICATED SMP
|
|
OPTIONS_DEFINE= PUNKBUSTER DOCS
|
|
OPTIONS_DEFAULT= CLIENT DEDICATED PUNKBUSTER SMP
|
|
|
|
CLIENT_DESC= Install client
|
|
DEDICATED_DESC= Install dedicated server
|
|
PUNKBUSTER_DESC= Install PunkBuster
|
|
SMP_DESC= Install SMP (threaded) client
|
|
|
|
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}"
|
|
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
LIBDIR= ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
|
|
Q3DATAFILE= linuxq3apoint-1.32b-3.x86.run
|
|
Q3PATCHFILE= quake3-${PORTVERSION}.zip
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${Q3DATAFILE} | \
|
|
${TAR} zxf -
|
|
@${UNZIP_CMD} -qo ${_DISTDIR}/${Q3PATCHFILE} -d ${WRKDIR}
|
|
|
|
post-extract:
|
|
.for f in q3ded quake3.x86 quake3-smp.x86
|
|
@${MV} "${WRKSRC}/Quake III Arena 1.32c/linux/${f}" \
|
|
${WRKSRC}/bin/Linux/x86/${f}
|
|
.endfor
|
|
|
|
.include "${.CURDIR}/../quake3-data/Makefile.include"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
|
PROGS+= q3ded
|
|
PLIST_SUB+= DEDICATED=""
|
|
.else
|
|
PLIST_SUB+= DEDICATED="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
PROGS+= quake3.x86
|
|
PLIST_SUB+= CLIENT=""
|
|
.else
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPUNKBUSTER}
|
|
PLIST_SUB+= PUNKBUSTER=""
|
|
.else
|
|
PLIST_SUB+= PUNKBUSTER="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSMP}
|
|
PROGS+= quake3-smp.x86
|
|
PLIST_SUB+= SMP=""
|
|
.else
|
|
PLIST_SUB+= SMP="@comment "
|
|
.endif
|
|
|
|
do-build:
|
|
.for f in ${PROGS}
|
|
@(${ECHO_CMD} "#!${SH}"; \
|
|
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
|
|
${ECHO_CMD} 'exec ${LIBDIR}/${f:R} "$$@"') > ${WRKDIR}/${f:R}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${LIBDIR}
|
|
.for f in ${PROGS}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${LIBDIR}/${f:R}
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${PREFIX}/bin/linux-${f:R}
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MPUNKBUSTER}
|
|
@${CP} -Rp ${WRKSRC}/pb ${DATADIR}
|
|
@${RM} ${DATADIR}/pb/PB_EULA.txt
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${DOCSDIR}
|
|
@${CP} -Rp ${WRKSRC}/Docs/LinuxFAQ ${DOCSDIR}
|
|
. if ${PORT_OPTIONS:MPUNKBUSTER}
|
|
@${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${DOCSDIR}/PunkBuster
|
|
. endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|