aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/tine20/Makefile
blob: 10b633dbf421815eb949ee2800a228c7f6c26854 (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
# Created by: Mark Felder <feld@freebsd.org>
# $FreeBSD$

PORTNAME=   tine20
PORTVERSION=    0.0.2012.10.04
DISTVERSIONSUFFIX=  2012.10.4
CATEGORIES= deskutils
MASTER_SITES=   http://www.tine20.org/downloads/${DISTVERSIONSUFFIX}/
DISTNAME=   ${PORTNAME}-allinone_${DISTVERSIONSUFFIX}

MAINTAINER= feld@freebsd.org
COMMENT=    Professional Open Source Groupware and CRM

LICENSE_FILE=   ${WRKSRC}/LICENSE

USE_BZIP2=  yes

FETCH_ARGS= -Fpr

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

SUB_FILES=  pkg-message
SUB_LIST=   DISTNAME=${DISTNAME}

OPTIONS_DEFINE= LDAP APC MEMCACHE
APC_DESC=   Enable pecl-APC support
MEMCACHE_DESC=  Enable pecl-memcache support

USE_MYSQL=  yes
USE_PHP=    ctype dom gd iconv json mcrypt mysql pdo_mysql simplexml spl xml zip
WANT_PHP_WEB=   yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAPC}
USE_PHP+=   apc
.endif

.if ${PORT_OPTIONS:MLDAP}
USE_PHP+=   ldap
.endif

.if ${PORT_OPTIONS:MMEMCACHE}
USE_PHP+=   memcache
.endif

.include <bsd.port.pre.mk>
do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKDIR}/${PORTNAME}
    cd ${WRKDIR}/${PORTNAME} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS}

do-install:
    ${MKDIR} ${WWWDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR}

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

.include <bsd.port.post.mk>