summaryrefslogtreecommitdiff
path: root/net/punkbuster-data/Makefile
blob: 33b194a27c149b86824f1e5af2c92ad6230e5568 (plain)
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
# New ports collection makefile for:	punkbuster anti cheat server data file
# Date created:		29 Mar 2001
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	punkbuster
PORTVERSION=	0.1156.0
CATEGORIES=	net linux
MASTER_SITES=	http://www.punkbuster.com/downloads/
PKGNAMESUFFIX=	-data
EXTRACT_SUFX=
DISTFILES=	cvar.cfg pbclhl.dat pbclhl_
DIST_SUBDIR=	punkbuster/${PORTVERSION}
EXTRACT_ONLY=

MAINTAINER=	lioux@FreeBSD.org

NO_PACKAGE=	the software terms do not allow non-standard\
		${PORTNAME} distributions

NO_BUILD=	yes
PLIST_SUB=	PUNKBUSTER_DIR="${PUNKBUSTER_DIR:S/^\///}/" \
		PUNKBUSTER_DATA="${PUNKBUSTER_DATA}"

INSTALL_DIR=    ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}

# pkg data files
DESCR=		${PUNKBUSTER_PORT}/pkg-descr
PKGMESSAGE=		${PUNKBUSTER_PORT}/pkg-message

USE_LINUX_PREFIX=	yes
PUNKBUSTER_PORT=   ${.CURDIR}/../punkbuster
# the later is not working, hummm. Help?
#PUNKBUSTER_DIR!=	cd ${PUNKBUSTER_PORT} && ${MAKE} -V PUNKBUSTER_DIR
PUNKBUSTER_DIR=	/usr/games/punkbuster
PUNKBUSTER_DATA=	${PKGNAME}

do-install:
	@${INSTALL_DIR} ${PREFIX}${PUNKBUSTER_DIR}
	@${TOUCH} ${PREFIX}${PUNKBUSTER_DIR}/${PKGNAME}
.for file in ${DISTFILES}
	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} \
		${PREFIX}${PUNKBUSTER_DIR}
.endfor
	@(cd ${PUNKBUSTER_PORT} && ${MAKE} pkgmessage-output)

.include <bsd.port.mk>