summaryrefslogtreecommitdiff
path: root/games/hlserver-admin/Makefile
blob: 56dc9e1bb3d1c6fe44ed26d8e103e3be939a5fea (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
# New ports collection makefile for:    Half Life Admin Mod
# Date created:				Sun Apr 29 15:58:33 EDT 2001
# Whom:					pat@databits.net et al
#
# $FreeBSD$
#

PORTNAME=	admin
PORTVERSION=	2.50.26
PORTREVISION=	2
PORTEPOCH=	1
MASTER_SITES=	http://www.adminmod.org/downloads/
DISTNAME=	halflife-admin-${PORTVERSION}
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	${PORTNAME}

WRKSRC=		${WRKDIR}/Admin

slaveport-post-extract:
	@${PERL} -pi.orig -e \
		's|/usr/local/games/hlds_l|${PREFIX}${HLDSDIR:S/\/$//}|' \
		${WRKSRC}/install_admin

slaveport-post-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/install_admin \
		${PREFIX}${HLDSDIR}/Admin

HALFLIFE_COUNTERSTRIKE_MASTER=	${.CURDIR}/../hlserver-cs

.include "${HALFLIFE_COUNTERSTRIKE_MASTER}/Makefile"