summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2020-10-31 20:24:42 +0000
committerBernard Spil <brnrd@FreeBSD.org>2020-10-31 20:24:42 +0000
commitd6a703c72ae507ed30d3a9000cbb6be8f6bb07a1 (patch)
tree049edf27bfee537b31586db210d134b4407a126f
parentUpdate to version 2.3-dev9 (diff)
www/nextcloud: Fix build with PHP 8.0
* This does NOT mean Nextcloud is PHP 8 compatible!
Notes
Notes: svn path=/head/; revision=553794
-rw-r--r--www/nextcloud/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/nextcloud/Makefile b/www/nextcloud/Makefile
index c80e1325b8c5..0711e1cb9903 100644
--- a/www/nextcloud/Makefile
+++ b/www/nextcloud/Makefile
@@ -13,8 +13,8 @@ LICENSE= AGPLv3
USES= cpe gettext-runtime php:flavors,web tar:bzip2
USE_PHP= bcmath bz2 ctype curl dom fileinfo filter gd gmp hash iconv \
- json mbstring pdo posix session simplexml xml xmlreader \
- xmlwriter xsl zip zlib
+ mbstring pdo posix session simplexml xml xmlreader xmlwriter \
+ xsl zip zlib
NEXTCLOUD_USERNAME?= ${WWWOWN}
NEXTCLOUD_GROUPNAME?= ${WWWGRP}
@@ -63,6 +63,10 @@ SSL_USE= PHP=openssl
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu@${PHP_FLAVOR}
.endif
+.if ${FLAVOR} != php80
+USE_PHP+= json
+.endif
+
post-extract:
@${MV} ${WRKSRC}/config/config.sample.php ${WRKSRC}/config/config.documented.php