aboutsummaryrefslogtreecommitdiffstats
path: root/games/hlserver-cs
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-05-03 09:34:44 +0800
committerlioux <lioux@FreeBSD.org>2001-05-03 09:34:44 +0800
commit07522e7dabd234594f59e0cecb6682d2420948f9 (patch)
treee44d4b70d69fcb428803211495916652800a32b4 /games/hlserver-cs
parent8e6576d9f714ab28164f7e58c69788240f8a48a8 (diff)
downloadfreebsd-ports-gnome-07522e7dabd234594f59e0cecb6682d2420948f9.tar.gz
freebsd-ports-gnome-07522e7dabd234594f59e0cecb6682d2420948f9.tar.zst
freebsd-ports-gnome-07522e7dabd234594f59e0cecb6682d2420948f9.zip
- Enable automatic setting of WRKSRC for slave ports
- Improve ^M cleaning in the pre-patch target Approved by: maintainer
Diffstat (limited to 'games/hlserver-cs')
-rw-r--r--games/hlserver-cs/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/hlserver-cs/Makefile b/games/hlserver-cs/Makefile
index 0b04d8b498e8..f27a3bf39bdc 100644
--- a/games/hlserver-cs/Makefile
+++ b/games/hlserver-cs/Makefile
@@ -31,7 +31,11 @@ ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
NO_CDROM= "Size; the data set is much too big"
NO_BUILD= yes
+.if (${PORTNAME}==cs)
WRKSRC?= ${WRKDIR}/cstrike
+.else
+WRKSRC?= ${WRKDIR}/${PORTNAME}
+.endif
PLIST_SUB+= ${PLIST_SUB_MASTER}
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
@@ -47,7 +51,7 @@ pre-patch:
.for file in *.cfg */*.cfg *.gam */*.gam *.htm */*.htm \
*.inf */*.inf *.lst */*.lst *.sc */*.sc \
*.scr */*.scr *.txt */*.txt
- @${PERL} -pi -ne 's!\r\n!\n!' ${WRKDIR}/${file} >/dev/null 2>/dev/null
+ @${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/${file} >/dev/null 2>/dev/null
.endfor
# if you change the PLIST, please re-think the following