summaryrefslogtreecommitdiff
path: root/games/halflifeserver/Makefile
blob: 588e89ffe9f5f8b90480c9069668a477752b2720 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:    Half-Life Dedicated Server
# Date created:				Sat Jul 15 14:27:16 SAST 2000
# Whom:					markm@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	HLDS
PORTVERSION=	3.1.0.6
CATEGORIES=	games linux
MASTER_SITES=	http://web2.globalwebhost.com/~pat/files/ \
		http://ftp1download.gamespy.com/fileplanet/fpnew/action/half-life/official/ \
		http://www.jetstreamgames.co.nz/files/pub/gamespyftp1/fpnew/action/half-life/official/ \
		ftp://ftp.fasta.fh-dortmund.de/gdi/halflife/server/linux/ \
		ftp://fileplanet.ngi.it/fileplanet/fpnew/action/half-life/official/ \
		ftp://ftp.gmd.de/people/cla/hl/hl-newest/linux/ \
		ftp://ftp.icsmedia.de/pub/games/halflife/hl_server/
DISTNAME=	hlds_l3106
EXTRACT_ONLY=

MAINTAINER=	pat@databits.net

BUILD_DEPENDS=	/compat/linux/lib/ld.so:${PORTSDIR}/emulators/linux_base
RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base

NO_CDROM=	"Size; the data set is much too big"
NO_BUILD=	yes
PREFIX=		/compat/linux
WRKSRC=		${WRKDIR}/hlds_l
EXTRACT_ONLY_1=	hlds_l3106.tar.gz

HLDSDIR=	/usr/games/hlds_l

do-install:
	@cd ${PREFIX}/usr/games ;\
	for file in ${EXTRACT_ONLY_1}; do \
		if ! (${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$${file} ${EXTRACT_AFTER_ARGS}) ;\
		then \
			exit 1 ;\
		fi \
	done
	@cd ${PREFIX}${HLDSDIR} ;\
	for file in ${EXTRACT_ONLY_2}; do \
		if ! (${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$${file} ${EXTRACT_AFTER_ARGS}) ;\
		then \
			exit 1 ;\
		fi \
	done

	if ! (cat ${PREFIX}/etc/ld.so.conf | ${GREP} ${HLDSDIR}) ;\
	then \
		${ECHO} ${HLDSDIR} >> ${PREFIX}/etc/ld.so.conf ;\
	fi

	${PREFIX}${SH} -c ${LDCONFIG}

.include <bsd.port.mk>