git: 2d26e2d78202 - main - x11-wm/wayfire-plugins-extra: respect PREFIX after f081b8b768c8

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 20 Dec 2021 14:55:37 UTC
The branch main has been updated by jbeich:

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

commit 2d26e2d78202bab6f2b6d63e74585f6fd463392d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-12-20 14:54:40 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-12-20 14:55:30 +0000

    x11-wm/wayfire-plugins-extra: respect PREFIX after f081b8b768c8
---
 x11-wm/wayfire-plugins-extra/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/x11-wm/wayfire-plugins-extra/Makefile b/x11-wm/wayfire-plugins-extra/Makefile
index 32dd881e1879..03d733c9d590 100644
--- a/x11-wm/wayfire-plugins-extra/Makefile
+++ b/x11-wm/wayfire-plugins-extra/Makefile
@@ -44,4 +44,9 @@ LIBRSVG2_USES=		xorg
 LIBRSVG2_USE=		GNOME=librsvg2 XORG=pixman
 LIBRSVG2_MESON_TRUE=	enable_windecor
 
+post-patch:
+# Respect PREFIX for icons
+	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
+		${WRKSRC}/subprojects/windecor/deco-theme.cpp
+
 .include <bsd.port.mk>