1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/mail/rainloop/Makefile
Kurt Jaeger 136299412e mail/rainloop: update 1.14.0 -> 1.15.0
- now supports php8

PR:		253221
Submitted by:	Yasuhiro Kimura <yasu@utahime.org> (maintainer)
Relnotes:	https://www.rainloop.net/changelog/
2021-02-03 19:11:45 +00:00

47 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= rainloop
PORTVERSION= 1.15.0
CATEGORIES= mail www
MASTER_SITES= https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/
PKGNAMESUFFIX?= ${PHP_PKGNAMESUFFIX}
MAINTAINER= yasu@utahime.org
COMMENT?= Modern and interactive webmail
.if "${PKGNAMESUFFIX}" == "${PHP_PKGNAMESUFFIX}"
LICENSE= RainLoop
LICENSE_NAME= RainLoop Software License
LICENSE_TEXT= License can be found at: http://www.rainloop.net/licensing/
LICENSE_PERMS= auto-accept
.endif
USES= php:web,flavors zip
NO_BUILD= yes
NO_ARCH= yes
NO_WRKSUBDIR= yes
USE_PHP= curl dom iconv json openssl pcre simplexml spl xml zlib
PLIST_SUB= VER="${PORTVERSION}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
.if "${PKGNAMESUFFIX}" == "${PHP_PKGNAMESUFFIX}"
RESTRICTED= Redistribution in any form is prohibited
.endif
OPTIONS_RADIO= DB
OPTIONS_RADIO_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= SQLITE
MYSQL_USE= PHP=pdo_mysql
PGSQL_USE= PHP=pdo_pgsql
SQLITE_USE= PHP=pdo_sqlite
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}/data
${INSTALL_DATA} ${WRKSRC}/data/* ${STAGEDIR}${WWWDIR}/data
${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} rainloop ${STAGEDIR}${WWWDIR})
# Prune empty dirs
@${FIND} ${STAGEDIR}${WWWDIR}/${PORTNAME}/v/${PORTVERSION} -type d -empty -delete
.include <bsd.port.mk>