aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/moregroupware/Makefile
blob: dab87fe612e891aafdbbc232642a72c133b7b612 (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
# Created by: Rob Evers <rob@debank.tv>
# $FreeBSD$

PORTNAME=   moregroupware
PORTVERSION=    0.7.4
PORTREVISION=   3
CATEGORIES= deskutils www
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-core-${PORTVERSION}

MAINTAINER= eksffa@freebsdbrasil.com.br
COMMENT=    A web based GroupWare system

# php extensions
USE_PHP=    curl \
        gd \
        pcre \
        session \
        xml

WANT_PHP_MOD=   yes

OPTIONS_DEFINE= ADDONS PGSQL NLS
ADDONS_DESC=    install additional workgroup features (addons)

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
.endif

.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+=   ${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql74-server
.else
RUN_DEPENDS+=   ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql50-server
.endif

.if ${PORT_OPTIONS:MADDONS}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
        ${PORTNAME}-addons-${PORTVERSION}${EXTRACT_SUFX}
PLIST_SUB+= ADDONS=""
.else
PLIST_SUB+= ADDONS="@comment "
.endif

NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME:R}

do-install:
    @${CP} -r ${WRKSRC} ${PREFIX}/www/
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/moregroupware

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

.include <bsd.port.mk>