summaryrefslogtreecommitdiff
path: root/games/hlserver-cs/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-04-18 03:09:59 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-04-18 03:09:59 +0000
commitc30036a6cca20c088f2f67fceff4670f3ad8ddcd (patch)
tree8234ccfa21c2022a3f7f885e92cd403b9e087a3e /games/hlserver-cs/Makefile
parentProtect slave ports PLIST_SUB from needless polution (diff)
- Update to version 1.1c
- Update PLIST_SUB inheritance from halflifeserver (don't pollute) - Better handling PLIST, e.g., now handles NOPORTDOCS correctly Approved by: maintainer (with changes)
Notes
Notes: svn path=/head/; revision=41626
Diffstat (limited to 'games/hlserver-cs/Makefile')
-rw-r--r--games/hlserver-cs/Makefile30
1 files changed, 16 insertions, 14 deletions
diff --git a/games/hlserver-cs/Makefile b/games/hlserver-cs/Makefile
index 7f71bfdcab3a..f62916b48d38 100644
--- a/games/hlserver-cs/Makefile
+++ b/games/hlserver-cs/Makefile
@@ -6,12 +6,15 @@
#
PORTNAME?= cs
-PORTVERSION?= 1.1b
+PORTVERSION?= 1.1c
CATEGORIES= games linux
-MASTER_SITES?= ftp://ftp.icrontic.com/pub/ \
+MASTER_SITES?= http://www.databits.net/~pat/ \
+ ftp://ftp.icrontic.com/pub/ \
http://flf.playnet.com/
PKGNAMEPREFIX= hlserver-
-DISTNAME?= cs_11b_full
+.ifndef(DISTNAME)
+DISTFILES?= cs_11b_full.tar.gz cs_11c_up.tar.gz
+.endif
MAINTAINER?= pat@databits.net
@@ -22,7 +25,7 @@ USE_LINUX_PREFIX= yes
NO_CDROM= "Size; the data set is much too big"
NO_BUILD= yes
WRKSRC?= ${WRKDIR}/cstrike
-PLIST_SUB= ${PLIST_SUB_MASTER}
+PLIST_SUB+= ${PLIST_SUB_MASTER}
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
SORT?= /usr/bin/sort
@@ -30,7 +33,7 @@ SORT?= /usr/bin/sort
HALFLIFESERVER_PORT= ${.CURDIR}/../halflifeserver
HLDSDIR!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V HLDSDIR
HL_PROGRAM!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V HL_PROGRAM
-PLIST_SUB_MASTER!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V PLIST_SUB
+PLIST_SUB_MASTER!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V PLIST_SUB_FOR_THIS_PORT
pre-patch:
# remove trailing ^M
@@ -50,22 +53,21 @@ do-install: install-parse-plist install-run-scripts
# kaboom, ashes to ashes, .... The problem is dead :)
# Contributed by <lioux@FreeBSD.org>
-install-parse-plist:
- @${PERL} -e 'open(FHANDLER,"${PLIST}");' \
+install-parse-plist: generate-plist
+ @${PERL} -e 'open(FHANDLER,"${TMPPLIST}");' \
-e 'open(FDIR,">${WRKDIR}/dirs.sh.tmp");' \
-e 'open(FFILES,">${WRKDIR}/files.sh");' \
-e 'while (!eof(FHANDLER)) {' \
-e 'chop($$file = <FHANDLER>);' \
- -e '$$file =~ s!%%HLDSDIR%%!!;' \
- -e '$$dir = $$file;' \
- -e '$$file =~ s!^\@.+!!;' \
+ -e '$$dir = $$file_partial = $$file;' \
+ -e '$$file_partial =~ s!^${HLDSDIR:S!^/!!}!!;' \
-e 'print FDIR "${INSTALL_DIR}", \
- " ", "\"${PREFIX}/${HLDSDIR}/$$dir\"", \
+ " ", "\"${PREFIX}/$$dir\"", \
"\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \
-e 'print FFILES "${INSTALL_DATA}", \
- " ", "\"${WRKDIR}/$$file\"", \
- " ", "\"${PREFIX}/${HLDSDIR}/$$file\"", \
- "\n" if (length($$file) > 0);' \
+ " ", "\"${WRKDIR}/$$file_partial\"", \
+ " ", "\"${PREFIX}/$$file\"", \
+ "\n" if ($$file !~ m!^\@!);' \
-e '}' \
-e 'close(FFILES);' \
-e 'close(FDIR);' \