aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/moregroupware/Makefile
blob: ffe4812ab30dd2068d06bee0ae8b7349bcabf1e6 (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
61
# New ports collection makefile for:    deskutils/moregroupware
# Date created:             December 30th 2003
# Whom:                     Rob Evers <rob@debank.tv>
#
# $FreeBSD$
#

PORTNAME=   moregroupware
PORTVERSION=    0.7.4
PORTREVISION=   1
CATEGORIES= deskutils www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= moregroupware
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=    ADDONS "install additional workgroup features (addons)" off \
        POSTGRESQL "use PostgreSQL instead of MySQL" off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
.endif

.if defined(WITH_POSTGRESQL)
RUN_DEPENDS+=   ${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql74-server
.else
RUN_DEPENDS+=   ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql50-server
.endif

.if defined (WITH_ADDONS)
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.post.mk>