git: 876d155e09a2 - 2021Q4 - x11-wm/wayfire-plugins-extra: respect PREFIX after f081b8b768c8

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

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

commit 876d155e09a21b1537e4465e864836d5cb793ab0
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:44 +0000

    x11-wm/wayfire-plugins-extra: respect PREFIX after f081b8b768c8
    
    (cherry picked from commit 2d26e2d78202bab6f2b6d63e74585f6fd463392d)
---
 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 73d629bcc016..6e0f58008875 100644
--- a/x11-wm/wayfire-plugins-extra/Makefile
+++ b/x11-wm/wayfire-plugins-extra/Makefile
@@ -41,4 +41,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>