git: 94535f4e72c0 - main - mail/claws-mail-notification: Fix RUN_DEPENDS with GTK3

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Thu, 21 Sep 2023 05:16:50 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=94535f4e72c09bc7fbd0efdfe3e7df06981da676

commit 94535f4e72c09bc7fbd0efdfe3e7df06981da676
Author:     Ivan Rozhuk <rozhuk.im@gmail.com>
AuthorDate: 2023-09-21 05:14:15 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-09-21 05:14:15 +0000

    mail/claws-mail-notification: Fix RUN_DEPENDS with GTK3
    
    claws-mail-notification was missing a required shared library:
    libcanberra-gtk3.so.0
    
    PR:             273804
---
 mail/claws-mail-notification/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/mail/claws-mail-notification/Makefile b/mail/claws-mail-notification/Makefile
index 9e010655830d..f565f1c082a8 100644
--- a/mail/claws-mail-notification/Makefile
+++ b/mail/claws-mail-notification/Makefile
@@ -3,8 +3,16 @@ PORTNAME=	notification
 COMMENT=	New mail notification plugin for Claws Mail
 WWW=		https://www.claws-mail.org/plugin.php?plugin=notification
 
-LIB_DEPENDS=	libcanberra-gtk.so:audio/libcanberra-gtk2 \
-		libnotify.so:devel/libnotify
+.include "../claws-mail/Makefile.ver"
+
+.if ${MASTER_OPTIONS:MGTK2}
+LIB_DEPENDS=	libcanberra-gtk.so:audio/libcanberra-gtk2
+.endif
+.if ${MASTER_OPTIONS:MGTK3}
+LIB_DEPENDS=	libcanberra-gtk3.so:audio/libcanberra-gtk3
+.endif
+
+LIB_DEPENDS+=	libnotify.so:devel/libnotify
 
 CLAWS_PLUGINS_BUILD=	${PORTNAME}