diff options
author | pat <pat@FreeBSD.org> | 2001-12-06 11:29:19 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2001-12-06 11:29:19 +0800 |
commit | e5b1c4484c1151156209e261fdab74f6982f6524 (patch) | |
tree | 3841693423763d80101a3fd811fc81419287e256 /games/halflifeserver/Makefile | |
parent | 477bc74a6c9c9d4f6c6745713942435fdf254765 (diff) | |
download | freebsd-ports-gnome-e5b1c4484c1151156209e261fdab74f6982f6524.tar.gz freebsd-ports-gnome-e5b1c4484c1151156209e261fdab74f6982f6524.tar.zst freebsd-ports-gnome-e5b1c4484c1151156209e261fdab74f6982f6524.zip |
Add option for users to install Ping Booster as an addon.
[from website]
HLDS Ping Booster is a small tweak to the Half-Life Dedicated Server
that drastically reduces player pings and generally makes the game
much more responsive.
Submitted by: lioux
Diffstat (limited to 'games/halflifeserver/Makefile')
-rw-r--r-- | games/halflifeserver/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/games/halflifeserver/Makefile b/games/halflifeserver/Makefile index 196188f04cca..43316835b57e 100644 --- a/games/halflifeserver/Makefile +++ b/games/halflifeserver/Makefile @@ -38,11 +38,48 @@ SORT?= /usr/bin/sort # files which should be installed with executables perms EXECUTABLES= ${HL_PROGRAM} hltv +.ifdef(WITH_PING_BOOSTER) +MASTER_SITES+= http://www.udpsoft.com/booster/ +DISTFILES+= HLDSPingBooster-0.99.tar.gz + +BOOSTER_FILES= booster.so hlds_boost +EXECUTABLES+= hlds_boost + +PLIST_SUB+= BOOSTER="" +.else +PLIST_SUB+= BOOSTER="@comment " +.endif + +pre-everything:: +.ifndef(WITH_PING_BOOSTER) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_PING_BOOSTER to enable HLDS Ping Booster.' + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> HLDS Ping Booster is a small tweak to the Half-Life Dedicated' + @${ECHO_MSG} '===> Server that drastically reduces player pings and generally' + @${ECHO_MSG} '===> makes the game much more responsive.' + @${ECHO_MSG} '===> Besides defining this, instead of using hlds_run to start the' + @${ECHO_MSG} '===> server, use hlds_boost. Clients do not have to install anything.' + @${ECHO_MSG} '===> Check http://www.udpsoft.com/booster/ for additional information.' + @${ECHO_MSG} '===>' +.endif + +post-extract: +.ifdef(WITH_PING_BOOSTER) +.for file in ${BOOSTER_FILES} + @${CP} ${WRKDIR}/${file} ${WRKSRC} +.endfor +.endif + pre-patch: # remove trailing ^M @find -E ${WRKSRC} -type f \ -iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|rc)" \ -exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \; +.ifdef(WITH_PING_BOOSTER) + @${PERL} -pi -e 's|booster.so|${PREFIX}${HLDSDIR}booster.so|' \ + ${WRKSRC}/hlds_boost +.endif do-install: install-parse-plist install-run-scripts scan-libs |