mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
8252bbbeee
Changelog: https://wiki.phpbb.com/Release_Highlights/3.2.3 Sponsored by: Netzkommune GmbH
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# Created by: Zhen REN <bg1tpt@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpbb
|
|
DISTVERSION= 3.2.3
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://www.phpbb.com/files/release/
|
|
PKGNAMESUFFIX= 3
|
|
DISTNAME= phpBB-${PORTVERSION}
|
|
|
|
MAINTAINER= joneum@FreeBSD.org
|
|
COMMENT= PHP-based bulletin board / discussion forum system
|
|
|
|
LICENSE= GPLv2
|
|
|
|
CONFLICTS= phpbb-[0-2]*
|
|
|
|
USES= php tar:bzip2
|
|
USE_PHP= ctype hash json tokenizer
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
WWWDOCROOT?= www
|
|
PHPBBURL?= phpBB3
|
|
|
|
WRKSRC= ${WRKDIR}/phpBB3
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PHPBBURL="${PHPBBURL}" \
|
|
PHPBBDIR="${PHPBBDIR}"
|
|
|
|
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
|
PORTDOCS= *
|
|
|
|
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:
|
|
${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.sample
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|