git: 5b7a5e5d39a8 - main - graphics/libplacebo: track libunwind dependency after ed6dfa7816a5

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 18 Jan 2022 10:23:23 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b7a5e5d39a886e904f19c00211de7abb24842c4

commit 5b7a5e5d39a886e904f19c00211de7abb24842c4
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-18 10:20:15 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-01-18 10:22:50 +0000

    graphics/libplacebo: track libunwind dependency after ed6dfa7816a5
---
 graphics/libplacebo/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/libplacebo/Makefile b/graphics/libplacebo/Makefile
index 498ba4cb9101..6c1c58d7899f 100644
--- a/graphics/libplacebo/Makefile
+++ b/graphics/libplacebo/Makefile
@@ -15,10 +15,11 @@ USE_LDCONFIG=	yes
 GH_ACCOUNT=	haasn
 MESON_ARGS=	-Ddemos=false
 
-OPTIONS_DEFINE=	LCMS2 OPENGL TEST VULKAN
-OPTIONS_DEFAULT=LCMS2 OPENGL SHADERC
+OPTIONS_DEFINE=	LCMS2 LIBUNWIND OPENGL TEST VULKAN
+OPTIONS_DEFAULT=LCMS2 LIBUNWIND OPENGL SHADERC
 OPTIONS_SINGLE=	VULKAN
 OPTIONS_SINGLE_VULKAN=	GLSLANG SHADERC
+OPTIONS_EXCLUDE+=	${ARCH:Naarch64:Namd64:Ni386:Npowerpc64:Npowerpc64le:Nx86_64:C/.+/LIBUNWIND/}
 OPTIONS_SUB=	yes
 
 GLSLANG_DESC=		glslang SPIR-V compiler
@@ -29,6 +30,10 @@ GLSLANG_IMPLIES=	VULKAN
 LCMS2_LIB_DEPENDS=	liblcms2.so:graphics/lcms2
 LCMS2_MESON_ENABLED=		lcms
 
+LIBUNWIND_DESC=		Use libunwind for stacktraces
+LIBUNWIND_LIB_DEPENDS=	libunwind.so:devel/libunwind
+LIBUNWIND_MESON_ENABLED=	unwind
+
 OPENGL_LIB_DEPENDS=	libepoxy.so:graphics/libepoxy
 OPENGL_MESON_ENABLED=	opengl