mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
6314b147f2
Unreal Tournament showcases the enhanced, hugely-popular Unreal engine, the benchmark of 3-D graphical excellence and immersive gameplay. This stand-alone game brings you never before, richly-textured and thrilling environments. In single player mode with "bots" (virtual customizeable team mates) or in multiplayer mode with up to 16 bots and/or humans. Step into the Unreal arena and stake your life in the pursuit of victory as the Unreal Grand Master. Or suffer the agonizing death of defeat. For information about the Linux patch/installer WWW: http://liflg.org/?catid=6&gameid=51 For more information about UT visit: http://www.unrealtournament.com/ PR: ports/91984 Submitted by: Sean Farley <sean-freebsd@farley.org>
110 lines
3.7 KiB
Makefile
110 lines
3.7 KiB
Makefile
# New ports collection makefile for: linux-ut
|
|
# Date created: 7 Jan 2006
|
|
# Whom: Sean Farley <sean-freebsd@farley.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= linux-ut
|
|
PORTVERSION= 436
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= http://liflg.org/?what=dl&catid=6&gameid=51&filename=
|
|
DISTFILES= unreal.tournament_436-multilanguage.run \
|
|
unreal.tournament.official.bonus.pack.collection.run
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= sean-freebsd@farley.org
|
|
COMMENT= Unreal Tournament for Linux
|
|
|
|
# A redirect will occur, so have fetch save the file with the correct name.
|
|
FETCH_CMD= /usr/bin/fetch -Rr
|
|
FETCH_BEFORE_ARGS= -o $${file}
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
USE_LINUX= yes
|
|
USE_XLIB= yes
|
|
NO_BUILD= yes
|
|
NO_PACKAGE= Distribution is 340MB\; set FORCE_PACKAGE if you really want\
|
|
to build this package
|
|
RESTRICTED= Redistribution is limited, see license
|
|
IS_INTERACTIVE= yes
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
.for file in ${DISTFILES}
|
|
@cd ${WRKSRC} &&\
|
|
${SED} -e '1,/exit $$res/d' ${_DISTDIR}/${file} | ${TAR} zxf -
|
|
.endfor
|
|
@${MV} ${WRKSRC}/bin/Linux/x86/ucc ${WRKSRC}/bin/.
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|\(UT_DATA_PATH=\).*|\1\"${DATADIR}/System\"|"\
|
|
${WRKSRC}/bin/ucc
|
|
@${REINPLACE_CMD} -e "s|^\(GAME_DIR=\).*|\1\"${DATADIR}\"|"\
|
|
-e "/ll=/{N;d;}" ${WRKSRC}/bin/ut
|
|
|
|
# Installation steps performed:
|
|
# - Verify path to CD content.
|
|
# - Verify CD was correctly mounted. -b option may be needed to mount it.
|
|
# - Copy desired content off of CD to drive. Windows files left behind.
|
|
# - Extract files from Linux patch minus various language files (necessary?).
|
|
# - Extract bonus pack.
|
|
# - Patch .ini file to use absolute paths to content.
|
|
# - Apply Linux patch.
|
|
# - Install scripts and README's.
|
|
# - Set permissions on files and directories.
|
|
do-install:
|
|
.if !defined(CDROM_MOUNT)
|
|
@${ECHO_CMD} "${PKGNAME} requires CDROM_MOUNT set to mount point of CD"
|
|
@${FALSE}
|
|
.endif
|
|
.if !exists(${CDROM_MOUNT}/NetGamesUSA.com)
|
|
@${ECHO_CMD} \
|
|
"NetGamesUSA.com not found on CD; try mounting with -b option"
|
|
@${FALSE}
|
|
.endif
|
|
@${ECHO_CMD} "Installing data from CD"
|
|
@${MKDIR} ${DATADIR}
|
|
.for dir in Help Logs Maps Music NetGamesUSA.com Sounds System Textures Web
|
|
@cd ${CDROM_MOUNT} &&\
|
|
${TAR} c --exclude '*.ICD' --exclude '*.bat' --exclude '*.dll'\
|
|
--exclude '*.est*' --exclude '*.[Ee][Xx][Ee]'\
|
|
--exclude '*.frt*' --exclude '*.ico' --exclude '*.itt*'\
|
|
--exclude '*.mpi' --exclude '*.url' --exclude 'D3D*'\
|
|
--exclude 'mplay*' -f - ${dir} |\
|
|
${TAR} x -C ${DATADIR} -f -
|
|
.endfor
|
|
@${RM} ${DATADIR}/Logs/delete_me.txt
|
|
@${ECHO_CMD} "Installing v${PORTVERSION} patch files"
|
|
.for tarfile in Credits NetGamesUSA.com OpenGL.ini data
|
|
@${TAR} zox -C ${DATADIR} --exclude '*.exe'\
|
|
-f ${WRKSRC}/${tarfile}.tar.gz
|
|
.endfor
|
|
@${ECHO_CMD} "Installing bonus pack"
|
|
.for ndx in 1 2 3 4
|
|
@${TAR} jox -C ${DATADIR} -f ${WRKSRC}/bp${ndx}.tar.bz2
|
|
.endfor
|
|
@${SED} -i "" -e "s|\.\.\\\\|${DATADIR}\\\\|" -e "s|\.\./|${DATADIR}/|"\
|
|
${DATADIR}/System/UnrealTournament.ini
|
|
@${ECHO_CMD} "Applying v${PORTVERSION} patch"
|
|
@${WRKSRC}/setup.data/bin/FreeBSD/x86/loki_patch\
|
|
${WRKSRC}/setup.data/patch.dat ${DATADIR}
|
|
.for script in ucc ut
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${PREFIX}/bin/
|
|
.endfor
|
|
.for datafile in README README.Loki README.bonus.pack.collection
|
|
@${INSTALL_DATA} ${WRKSRC}/${datafile} ${DATADIR}
|
|
.endfor
|
|
@${ECHO_CMD} "Setting permissions"
|
|
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
|
|
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${NOBINMODE}
|
|
@${FIND} ${DATADIR} \( -name "*.so" -o -name "lib*.so*" \) -print0 |\
|
|
${XARGS} -0 ${CHMOD} ${BINMODE}
|
|
.for exec in ucc-bin ut-bin
|
|
@${CHMOD} ${BINMODE} ${DATADIR}/System/${exec}
|
|
.endfor
|
|
@${ECHO_CMD} "Install complete"
|
|
|
|
.include <bsd.port.mk>
|