diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2010-11-23 09:50:13 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2010-11-23 09:50:13 +0000 |
commit | ed51cc49de17da79b9b118acde2c7a551aa13a8d (patch) | |
tree | 04f2d6b7e3f74d4a058ddf2befbd7232ad5f0623 /chinese/phpbb3-tw/Makefile | |
parent | c16d1f65a964f3ea7f2bada5712196da703bee72 (diff) | |
download | ports-ed51cc49de17da79b9b118acde2c7a551aa13a8d.tar.gz ports-ed51cc49de17da79b9b118acde2c7a551aa13a8d.zip |
Notes
Diffstat (limited to 'chinese/phpbb3-tw/Makefile')
-rw-r--r-- | chinese/phpbb3-tw/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/chinese/phpbb3-tw/Makefile b/chinese/phpbb3-tw/Makefile new file mode 100644 index 000000000000..995b5d4a4ce3 --- /dev/null +++ b/chinese/phpbb3-tw/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: phpbb3-tw +# Date created: 2010-11-08 +# Whom: Bo-Yi Wu <appleboy.tw@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= phpbb +PORTVERSION= 3.0.7 +CATEGORIES= chinese www +MASTER_SITES= http://www.phpbb-tw.net/phpbb/download/ \ + http://freebsd.ee.ccu.edu.tw/phpBB/ +PKGNAMESUFFIX= -tw +DISTNAME= phpBB-${PORTVERSION}-PL1 + +MAINTAINER= appleboy.tw@gmail.com +COMMENT= The Traditional Chinese version of phpBB3 + +CONFLICTS= phpbb-tw-[0-2]* phpbb-devel-[0-3]* phpbb-[0-3]* + +USE_ZIP= yes + +# The phpBB2 port supports a number of variables that may be tweaked at build +# time. Perform a "make options" to see more information on these variables. +# +WWWDOCROOT?= www +PHPBBURL?= phpBB3 +# +# End of user-configurable variables. + +LATEST_LINK?= phpbb3 +WRKSRC= ${WRKDIR}/phpBB3 +NO_BUILD= yes +SUB_FILES= pkg-message +SUB_LIST= PHPBBURL="${PHPBBURL}" \ + PHPBBDIR="${PHPBBDIR}" + +PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} + +# Set custom variables: +# +PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL} +PKGOPTS= ${FILESDIR}/pkg-opts + +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-install: + @ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php" + @ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php + @ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR} + @ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR} + @ ${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ + ${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} + @ ${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}' >> ${TMPPLIST} + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} + @ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} + +.if !defined(BATCH) + @ ${CAT} ${PKGMESSAGE} +.endif +.endif + +.include <bsd.port.mk> |