|
Lines 2-7
Link Here
|
| 2 |
|
2 |
|
| 3 |
PORTNAME= roundcube |
3 |
PORTNAME= roundcube |
| 4 |
DISTVERSION= 0.9.5 |
4 |
DISTVERSION= 0.9.5 |
|
|
5 |
PORTREVISION= 1 |
| 5 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 1 |
| 6 |
CATEGORIES?= mail www |
7 |
CATEGORIES?= mail www |
| 7 |
MASTER_SITES= SF/${PORTNAME}mail/${PORTNAME}mail/${DISTVERSION:U} |
8 |
MASTER_SITES= SF/${PORTNAME}mail/${PORTNAME}mail/${DISTVERSION:U} |
|
Lines 21-27
Link Here
|
| 21 |
USE_PHP= pcre mbstring session iconv dom xml json intl zip filter |
22 |
USE_PHP= pcre mbstring session iconv dom xml json intl zip filter |
| 22 |
IGNORE_WITH_PHP=52 |
23 |
IGNORE_WITH_PHP=52 |
| 23 |
|
24 |
|
| 24 |
OPTIONS_DEFINE= SSL LDAP GD PSPELL NSC |
25 |
OPTIONS_DEFINE= SSL LDAP GD PSPELL NSC DOCS FILEINFO MCRYPT EXIF |
| 25 |
OPTIONS_SINGLE= DB |
26 |
OPTIONS_SINGLE= DB |
| 26 |
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE |
27 |
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE |
| 27 |
OPTIONS_DEFAULT=MYSQL |
28 |
OPTIONS_DEFAULT=MYSQL |
|
Lines 34-73
Link Here
|
| 34 |
GD_DESC= Enable GD support (image conversion) |
35 |
GD_DESC= Enable GD support (image conversion) |
| 35 |
PSPELL_DESC= Enable PSpell support (internal spellcheck) |
36 |
PSPELL_DESC= Enable PSpell support (internal spellcheck) |
| 36 |
NSC_DESC= Install network spellchecker |
37 |
NSC_DESC= Install network spellchecker |
|
|
38 |
FILEINFO_DESC= Enable attachment filetype detection support |
| 39 |
MCRYPT_DESC= Enable encryption support |
| 40 |
EXIF_DESC= Enable image upload metadata support |
| 37 |
|
41 |
|
|
|
42 |
MYSQL_USE= PHP=pdo_mysql |
| 43 |
PGSQL_USE= PHP=pgsql |
| 44 |
SQLITE_USE= PHP=pdo_sqlite |
| 45 |
SSL_USE= PHP=openssl |
| 46 |
LDAP_USE= PHP=ldap |
| 47 |
GD_USE= PHP=gd |
| 48 |
PSPELL_USE= PHP=pspell |
| 49 |
NSC_USE= PHP=pspell,simplexml |
| 50 |
FILEINFO_USE= PHP=fileinfo |
| 51 |
MCRYPT_USE= PHP=mcrypt |
| 52 |
EXIF_USE= PHP=exif |
| 53 |
|
| 38 |
.include <bsd.port.options.mk> |
54 |
.include <bsd.port.options.mk> |
| 39 |
|
55 |
|
| 40 |
.if ${PORT_OPTIONS:MMYSQL} |
|
|
| 41 |
USE_PHP+= pdo_mysql |
| 42 |
.endif |
| 43 |
|
| 44 |
.if ${PORT_OPTIONS:MPGSQL} |
| 45 |
USE_PHP+= pdo_pgsql |
| 46 |
.endif |
| 47 |
|
| 48 |
.if ${PORT_OPTIONS:MSQLITE} |
| 49 |
USE_PHP+= pdo_sqlite |
| 50 |
.endif |
| 51 |
|
| 52 |
.if ${PORT_OPTIONS:MSSL} |
| 53 |
USE_PHP+= openssl |
| 54 |
.endif |
| 55 |
|
| 56 |
.if ${PORT_OPTIONS:MLDAP} |
| 57 |
USE_PHP+= ldap |
| 58 |
.endif |
| 59 |
|
| 60 |
.if ${PORT_OPTIONS:MGD} |
| 61 |
USE_PHP+= gd |
| 62 |
.endif |
| 63 |
|
| 64 |
.if ${PORT_OPTIONS:MPSPELL} || ${PORT_OPTIONS:MNSC} |
| 65 |
USE_PHP+= pspell |
| 66 |
.endif |
| 67 |
|
| 68 |
.if ${PORT_OPTIONS:MNSC} |
56 |
.if ${PORT_OPTIONS:MNSC} |
| 69 |
RCUBECOMP+= spellchecker.php |
57 |
RCUBECOMP+= spellchecker.php |
| 70 |
USE_PHP+= simplexml |
|
|
| 71 |
PLIST_SUB+= SPELLCHECK="" |
58 |
PLIST_SUB+= SPELLCHECK="" |
| 72 |
.else |
59 |
.else |
| 73 |
PLIST_SUB+= SPELLCHECK="@comment " |
60 |
PLIST_SUB+= SPELLCHECK="@comment " |
|
Lines 82-98
Link Here
|
| 82 |
@${FIND} ${WRKSRC} -name \*.orig -type f -delete |
69 |
@${FIND} ${WRKSRC} -name \*.orig -type f -delete |
| 83 |
|
70 |
|
| 84 |
do-install: |
71 |
do-install: |
| 85 |
-${MKDIR} ${STAGEDIR}/${WWWDIR} |
72 |
-${MKDIR} ${STAGEDIR}${WWWDIR} |
| 86 |
@cd ${WRKSRC} && ${COPYTREE_BIN} bin ${STAGEDIR}/${WWWDIR} |
73 |
@cd ${WRKSRC} && ${COPYTREE_BIN} bin ${STAGEDIR}${WWWDIR} |
| 87 |
.for i in ${RCUBECOMP} |
74 |
.for i in ${RCUBECOMP} |
| 88 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}/${WWWDIR} |
75 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${WWWDIR} |
| 89 |
.endfor |
76 |
.endfor |
| 90 |
.if ${PORT_OPTIONS:MDOCS} |
77 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
| 91 |
${MKDIR} ${STAGEDIR}/${DOCSDIR} |
|
|
| 92 |
.for i in ${PORTDOCS} |
78 |
.for i in ${PORTDOCS} |
| 93 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${DOCSDIR}/ |
79 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
| 94 |
.endfor |
80 |
.endfor |
| 95 |
.endif |
|
|
| 96 |
@(cd ${WRKSRC}; ${FIND} bin ${RCUBECOMP} -not -type d) | ${SORT} | \ |
81 |
@(cd ${WRKSRC}; ${FIND} bin ${RCUBECOMP} -not -type d) | ${SORT} | \ |
| 97 |
${SED} -ne 's,^,${WWWDIR_REL}/,p' >> ${TMPPLIST} |
82 |
${SED} -ne 's,^,${WWWDIR_REL}/,p' >> ${TMPPLIST} |
| 98 |
@${ECHO_CMD} '@exec chown ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/logs' \ |
83 |
@${ECHO_CMD} '@exec chown ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/logs' \ |