aboutsummaryrefslogtreecommitdiffstats
path: root/www/phpbb3/Makefile
blob: a842cae853b6cc699576bef5c249c329a109431b (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
58
59
60
# Created by: Zhen REN <bg1tpt@gmail.com>
# $FreeBSD$

PORTNAME=   phpbb
PORTVERSION=    3.1.10
CATEGORIES= www
MASTER_SITES=   https://www.phpbb.com/files/release/
PKGNAMESUFFIX=  3
DISTNAME=   phpBB-${PORTVERSION}

MAINTAINER= joneum@bsdproject.de
COMMENT=    PHP-based bulletin board / discussion forum system

LICENSE=    GPLv2

CONFLICTS=  phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
        phpbb-[0-2]*

USES=       php tar:bzip2
USE_PHP=    ctype hash json

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>