git: a3b163bbc017 - main - x11-wm/hyprland: unbreak plugin API after 54f2b0ad7dc5

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 04 May 2023 06:42:00 UTC
The branch main has been updated by jbeich:

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

commit a3b163bbc01771bf755f4f4a1420f2ae68d2990f
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-04 06:32:36 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-04 06:41:38 +0000

    x11-wm/hyprland: unbreak plugin API after 54f2b0ad7dc5
    
    In file included from hyprbars/barDeco.cpp:1:
    In file included from hyprbars/barDeco.hpp:5:
    In file included from /usr/local/include/hyprland/src/render/decorations/IHyprWindowDecoration.hpp:3:
    In file included from /usr/local/include/hyprland/src/render/decorations/../../defines.hpp:1:
    /usr/local/include/hyprland/src/render/decorations/../../includes.hpp:36:10: fatal error: 'wlr/backend.h' file not found
     #include <wlr/backend.h>
              ^~~~~~~~~~~~~~~
---
 x11-wm/hyprland/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/x11-wm/hyprland/Makefile b/x11-wm/hyprland/Makefile
index 9c05a4feb0ff..18ff5ae5624f 100644
--- a/x11-wm/hyprland/Makefile
+++ b/x11-wm/hyprland/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	hyprland
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.25.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-wm wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -90,4 +90,9 @@ bundled-libcxx:
 .endif # exists(/usr/lib/libc++.so)
 
 .include "${.CURDIR:H:H}/x11-toolkits/wlroots-devel/override.mk"
+post-patch:	wlroots-devel-patch
+wlroots-devel-patch:
+# Prefer <wlr/*> headers (used by <hyprland/*>) from wlroots-devel
+	@${REINPLACE_CMD} -i .devel "/subdirs/s|''|'../wlroots-devel/include', &|" \
+		${WRKSRC}/meson.build
 .include <bsd.port.mk>