2004-04-10 13:59:56 +02:00
|
|
|
# New ports collection makefile for: phpua-plugin_hl
|
|
|
|
# Date created: 29 March 2003
|
|
|
|
# Whom: hideki
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phpua-plugin_hl
|
|
|
|
PORTVERSION= 1.1.0b
|
2006-07-22 12:10:31 +02:00
|
|
|
PORTREVISION= 1
|
2004-04-10 13:59:56 +02:00
|
|
|
CATEGORIES= games www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= phpua
|
|
|
|
|
2006-11-08 10:28:33 +01:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2004-04-10 13:59:56 +02:00
|
|
|
COMMENT= A Half-Life plugin for phpUA
|
|
|
|
|
2006-07-22 12:10:31 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/${PHPUA}/index.php:${PORTSDIR}/games/phpua-engine
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2006-07-03 07:11:43 +02:00
|
|
|
|
2004-04-10 13:59:56 +02:00
|
|
|
# Some variables you can change
|
2006-07-22 12:10:31 +02:00
|
|
|
PHPUA?= www/phpua
|
2005-08-10 15:13:44 +02:00
|
|
|
PHPUA_USER?= ${WWWOWN}
|
|
|
|
PHPUA_GROUP?= ${WWWGRP}
|
2004-04-10 13:59:56 +02:00
|
|
|
|
|
|
|
# Static Variables
|
|
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2005-08-19 15:38:55 +02:00
|
|
|
PLIST_SUB+= PHPUA=${PHPUA} PHPUA_USER=${PHPUA_USER} PHPUA_GROUP=${PHPUA_GROUP}
|
2004-04-10 13:59:56 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2006-07-22 12:10:31 +02:00
|
|
|
do-extract:
|
|
|
|
@ ${MKDIR} ${WRKSRC}
|
|
|
|
@ cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
|
|
|
|
|
2004-04-10 13:59:56 +02:00
|
|
|
do-install:
|
2006-07-22 12:10:31 +02:00
|
|
|
@ ${CHOWN} -R ${PHPUA_USER}:${PHPUA_GROUP} ${WRKSRC}
|
|
|
|
@ ${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPUA}/
|
2004-04-10 13:59:56 +02:00
|
|
|
@ ${ECHO_MSG} ""
|
|
|
|
@ ${ECHO_MSG} "* Files have been installed in"
|
|
|
|
@ ${ECHO_MSG} "* ${PREFIX}/${PHPUA}"
|
|
|
|
@ ${ECHO_MSG} "*"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|