aboutsummaryrefslogtreecommitdiffstats
path: root/www/fluxbb/Makefile
blob: d6a91c848573fa36bd643d8fa91f6c9a6a6f62a6 (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
# New ports collection makefile for:    fluxbb
# Date created:     19 May 2008
# Whom:         Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   fluxbb
PORTVERSION=    1.4.4
CATEGORIES= www
MASTER_SITES=   http://fluxbb.org/download/releases/${PORTVERSION}/

MAINTAINER= wen@FreeBSD.org
COMMENT=    A fast and lightweight PHP-powered discussion board

SUB_FILES=  pkg-message
NO_BUILD=   yes
USE_PHP=    yes

OPTIONS_DEFINE= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=    MYSQL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=   mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=   pgsql
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+=   sqlite
.endif

do-extract:
    @${MKDIR} ${WRKSRC}
    @${TAR} -yxf ${DISTDIR}/${DISTFILES} -C ${WRKSRC}

do-install:
    @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
    @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>