caeaebda9f
Reported by: portscout
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# Created by: Aron Schlesinger <as@bsdgroup.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= groupoffice
|
|
DISTVERSIONPREFIX= com-
|
|
DISTVERSION= 3.7.24
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/group-office/3.7
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A modular web application framework vor office
|
|
|
|
RESTRICTED= Free for personal use only
|
|
NO_BUILD= yes
|
|
USE_PHP= mysql session mbstring pcre xml
|
|
WANT_PHP_WEB= yes
|
|
USE_MYSQL= yes
|
|
|
|
WWWDIR?= ${PREFIX}/www/${PORTNAME}3
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= IMAP GD CALENDAR WBXML
|
|
OPTIONS_DEFAULT= IMAP GD CALENDAR
|
|
CALENDAR_DESC= Calendar holiday support
|
|
IMAP_DESC= IMAP support
|
|
GD_DESC= Gallery support (GD)
|
|
WBXML_DESC= Synchronization Support
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MIMAP}
|
|
USE_PHP+= imap iconv
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGD}
|
|
USE_PHP+= gd
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCALENDAR}
|
|
USE_PHP+= calendar
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWBXML}
|
|
LIB_DEPENDS= wbxml2:${PORTSDIR}/textproc/wbxml2
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${WWWDIR}
|
|
${CP} -R ${WRKSRC}/ ${WWWDIR}
|
|
@${TOUCH} ${WWWDIR}/config.php
|
|
@${CHOWN} ${WWWOWN} ${WWWDIR}/config.php
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
create-plist:
|
|
@${FIND} -s ${WRKSRC}/${file} -not -type d \
|
|
| ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
|
|
@${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/config.php' >> ${PLIST}
|
|
@${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/config.php ];then rm -f %D/%%WWWDIR%%/config.php;fi' >> ${PLIST}
|
|
@${FIND} -ds ${WRKSRC}/${file} -type d \
|
|
| ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST}
|
|
|
|
.include <bsd.port.mk>
|