1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/games/phpua-engine/Makefile
Mark Linimon 27aa28e99d Reset bouncing maintainer addresses.
Source:		distfile survey
Hat:		portmgr
2005-10-10 02:25:24 +00:00

66 lines
1.8 KiB
Makefile

# New ports collection makefile for: phpUA
# Date created: 20 Feb 2003
# Whom: hideki
#
# $FreeBSD$
#
PORTNAME= phpua-engine
PORTVERSION= 1.1.0b
PORTREVISION= 2
CATEGORIES= games www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phpua
MAINTAINER= ports@FreeBSD.org
COMMENT= Game server monitor & admin tool
NO_BUILD= yes
USE_APACHE= yes
USE_PHP= yes
PLIST_SUB+= PHPUADIR=${PHPUADIR} PHPUA_USER=${PHPUA_USER} PHPUA_GROUP=${PHPUA_GROUP}
# Dynamic custom variables
WWWDOC?= www/data
PHPUA_USER?= ${WWWOWN}
PHPUA_GROUP?= ${WWWGRP}
APPNAME?= phpua
# Static Variables
PKGOPTS= ${FILESDIR}/pkg-opts
PHPUADIR= ${WWWDOC}/${APPNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
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
post-patch:
@${CAT} ${FILESDIR}/pkg-message.in | ${SED} -e \
's|%%PREFIX%%|${PREFIX}| ; s|%%PHPUADIR%%|${PHPUADIR}| ; s|%%APPNAME%%|${APPNAME}|' \
> ${PKGMESSAGE}
do-install:
@ ${MKDIR} ${PREFIX}/${PHPUADIR}
@ ${CP} ${WRKDIR}/*.php ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/doc ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/images ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/includes ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/languages ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/plugins ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/templates ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/wap ${PREFIX}/${PHPUADIR}/
@ ${CHOWN} -R ${PHPUA_USER}:${PHPUA_GROUP} ${PREFIX}/${PHPUADIR}/
.include <bsd.port.mk>