git: ad389fa60f18 - main - mail/dovecot-fts-flatcurve: add flavor support.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Jan 2025 14:10:44 UTC
The branch main has been updated by ler:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ad389fa60f18c724d584a870937306d1f4d341f5
commit ad389fa60f18c724d584a870937306d1f4d341f5
Author: Larry Rosenman <ler@FreeBSD.org>
AuthorDate: 2025-01-18 14:09:34 +0000
Commit: Larry Rosenman <ler@FreeBSD.org>
CommitDate: 2025-01-18 14:10:39 +0000
mail/dovecot-fts-flatcurve: add flavor support.
PR: 284133
Reported by: Martin Waschbüsch <martin@waschbuesch.de>
---
mail/dovecot-fts-flatcurve/Makefile | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/mail/dovecot-fts-flatcurve/Makefile b/mail/dovecot-fts-flatcurve/Makefile
index 4eb9b59d8187..fa52db9e38c0 100644
--- a/mail/dovecot-fts-flatcurve/Makefile
+++ b/mail/dovecot-fts-flatcurve/Makefile
@@ -1,6 +1,7 @@
PORTNAME= fts-flatcurve
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.5
+PORTREVISION= 1
CATEGORIES= mail
PKGNAMEPREFIX= dovecot-
@@ -10,10 +11,23 @@ WWW= https://github.com/slusarz/dovecot-fts-flatcurve
LICENSE= LGPL21
-BUILD_DEPENDS= dovecot>=2.3.17:mail/dovecot
+FLAVORS= default mysql pgsql
+FLAVOR?= ${FLAVORS[1]}
+mysql_PKGNAMESUFFIX= -mysql
+pgsql_PKGNAMESUFFIX= -pgsql
+BUILD_DEPENDS= dovecot>=2.3.17:mail/dovecot@default
+RUN_DEPENDS= dovecot>=2.3.17:mail/dovecot@default
+.if ${FLAVOR:U} == mysql
+BUILD_DEPENDS= dovecot-mysql>=2.3.17:mail/dovecot@mysql
+RUN_DEPENDS= dovecot-mysql>=2.3.17:mail/dovecot@mysql
+.endif
+.if ${FLAVOR:U} == pgsql
+BUILD_DEPENDS= dovecot-pgsql>=2.3.17:mail/dovecot@pgsql
+RUN_DEPENDS= dovecot-pgsql>=2.3.17:mail/dovecot@pgsql
+.endif
+
LIB_DEPENDS= libicuuc.so:devel/icu \
libxapian.so:databases/xapian-core
-RUN_DEPENDS= dovecot>=2.3.17:mail/dovecot
USES= autoreconf libtool pkgconfig
USE_GITHUB= yes