git: 732dd71418be - main - x11-toolkits/pango: track libthai dependency

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 20 Mar 2023 17:51:43 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=732dd71418be335fcf5b58d70fe8190aa66bb529

commit 732dd71418be335fcf5b58d70fe8190aa66bb529
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-20 17:45:52 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-20 17:50:33 +0000

    x11-toolkits/pango: track libthai dependency
    
    Error: /usr/local/lib/libpango-1.0.so.0.5000.9 is linked to /usr/local/lib/libthai.so.0 from devel/libthai but it is not declared as a dependency
    Warning: you need LIB_DEPENDS+=libthai.so:devel/libthai
    
    PR:             270361
---
 x11-toolkits/pango/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/x11-toolkits/pango/Makefile b/x11-toolkits/pango/Makefile
index 4b1a0f016bb0..2a7bcdea259d 100644
--- a/x11-toolkits/pango/Makefile
+++ b/x11-toolkits/pango/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pango
 PORTVERSION=	1.50.9
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome2
@@ -34,14 +35,18 @@ FONTSCALE=	${LOCALBASE}/share/fonts/TTF/luximb.ttf
 FONTENCOD=	${LOCALBASE}/share/fonts/encodings/encodings.dir
 
 OPTIONS_SUB=	yes
-OPTIONS_DEFINE=	X11 DOCS MANPAGES
-OPTIONS_DEFAULT=X11 MANPAGES
+OPTIONS_DEFINE=	X11 DOCS MANPAGES THAI
+OPTIONS_DEFAULT=X11 MANPAGES THAI
 
 DOCS_MESON_TRUE=	gtk_doc
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gi-docgen>=0:textproc/py-gi-docgen
 
 MANPAGES_BUILD_DEPENDS=	help2man:misc/help2man
 
+THAI_DESC=		Thai language support via libThai
+THAI_LIB_DEPENDS=	libthai.so:devel/libthai
+THAI_MESON_ENABLED=	libthai
+
 X11_MESON_ENABLED=	xft
 X11_USES=	xorg
 X11_USE=	XORG=x11,xft,xrender