mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
66 lines
2.3 KiB
Makefile
66 lines
2.3 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= q3ded
|
||
|
PORTVERSION= 1.29f
|
||
|
CATEGORIES= games linux
|
||
|
MASTER_SITES= ftp://ftp.bluesnews.com/idstuff/quake3/linux/ \
|
||
|
ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
|
||
|
ftp://ftp.mportal.hu/q3/
|
||
|
DISTNAME= linuxq3apoint-console-${PORTVERSION}-beta1.x86
|
||
|
EXTRACT_SUFX= .run
|
||
|
|
||
|
MAINTAINER= pat@databits.net
|
||
|
|
||
|
ONLY_FOR_ARCHS= i386
|
||
|
USE_LINUX_PREFIX= yes
|
||
|
NO_CDROM= "Size; the data set is much too big"
|
||
|
NO_BUILD= yes
|
||
|
WRKSRC= ${WRKDIR}/quake3
|
||
|
Q3DIR= usr/games/quake3/
|
||
|
PLIST_SUB+= Q3DIR="${Q3DIR}"
|
||
|
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
|
||
|
|
||
|
do-extract:
|
||
|
@${RM} -rf ${WRKDIR}
|
||
|
@${MKDIR} ${WRKDIR}
|
||
|
@cd ${WRKDIR} && tail +175 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
|
||
|
${TAR} zxvf - >/dev/null
|
||
|
|
||
|
pre-patch:
|
||
|
# remove trailing ^M
|
||
|
@find -E ${WRKSRC} -type f \
|
||
|
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
|
||
|
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
|
||
|
|
||
|
do-install:
|
||
|
@${INSTALL_DIR} ${PREFIX}/${Q3DIR}
|
||
|
@${INSTALL_DIR} ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DIR} ${PREFIX}/${Q3DIR}missionpack
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak1.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak2.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak3.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak4.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak5.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/baseq3/pak6.pk3 ${PREFIX}/${Q3DIR}baseq3
|
||
|
@${INSTALL_DATA} ${WRKSRC}/missionpack/pak1.pk3 ${PREFIX}/${Q3DIR}missionpack
|
||
|
@${INSTALL} -c -o nobody -g nogroup -m 500 ${WRKSRC}/q3ded ${PREFIX}/${Q3DIR}
|
||
|
@${INSTALL} -c -o nobody -g nogroup -m 500 ${WRKSRC}/quake3.x86 ${PREFIX}/${Q3DIR}
|
||
|
|
||
|
post-install:
|
||
|
.ifndef(NOPORTDOCS)
|
||
|
@${INSTALL_DIR} ${PREFIX}/${Q3DIR}Help
|
||
|
@${INSTALL_DATA} ${WRKSRC}/Help/Q3A_FAQ.html ${PREFIX}/${Q3DIR}Help
|
||
|
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/${Q3DIR}
|
||
|
@${INSTALL_DATA} ${WRKSRC}/Q3A_EULA.txt ${PREFIX}/${Q3DIR}
|
||
|
@${INSTALL_DATA} ${WRKSRC}/README-Id-6-18-01.html ${PREFIX}/${Q3DIR}
|
||
|
@${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${PREFIX}/${Q3DIR}
|
||
|
.endif
|
||
|
@${CAT} ${PKGMESSAGE}
|
||
|
|
||
|
.include <bsd.port.mk>
|