aboutsummaryrefslogtreecommitdiff
path: root/games/phpua-q3/Makefile
blob: bd18cf8cee7a18d4150bd9e19b465a14b8d48299 (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:	phpua-plugin_q3
# Date created:				11 March 2003
# Whom:					hideki
#
# $FreeBSD$
#

PORTNAME=	phpua-plugin_q3
PORTVERSION=	1.1.0b
PORTREVISION=	1
CATEGORIES=	games www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	phpua

MAINTAINER=	farrokhi@FreeBSD.org
COMMENT=	A Quake 3 plugin for phpUA

BUILD_DEPENDS=	${LOCALBASE}/${PHPUA}/index.php:${PORTSDIR}/games/phpua-engine
RUN_DEPENDS=	${BUILD_DEPENDS}

# Some variables you can change
PHPUA?=		www/phpua
PHPUA_USER?=	${WWWOWN}
PHPUA_GROUP?=	${WWWGRP}

# Static Variables
PKGOPTS=	${FILESDIR}/pkg-opts

NO_BUILD=	yes

PLIST_SUB+=	PHPUA=${PHPUA} PHPUA_USER=${PHPUA_USER} PHPUA_GROUP=${PHPUA_GROUP}

options:
	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
	@ ${CAT} ${PKGOPTS}

pre-everything::
.if !defined(BATCH)
	@ ${TEST} -r ${PKGOPTS} && \
	(${ECHO_MSG} '-------------------------------------------------------------------------'; \
	${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
	${ECHO_MSG} '-------------------------------------------------------------------------')
.endif

do-extract:
	@ ${MKDIR} ${WRKSRC}
	@ cd ${WRKSRC} && ${EXTRACT_CMD}  ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}

do-install:
	@ ${CHOWN} -R ${PHPUA_USER}:${PHPUA_GROUP} ${WRKSRC}
	@ ${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPUA}/
	@ ${ECHO_MSG} ""
	@ ${ECHO_MSG} "* Files have been installed in"
	@ ${ECHO_MSG} "* ${PREFIX}/${PHPUA}"
	@ ${ECHO_MSG} "*"

.include <bsd.port.mk>