git: 2d3bb94d4050 - 2021Q4 - x11/fnott: sync icons fix with fuzzel

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 09 Oct 2021 11:25:41 UTC
The branch 2021Q4 has been updated by jbeich:

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

commit 2d3bb94d4050b48640f36e02302a602005f28f02
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-10-09 11:19:06 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-10-09 11:25:11 +0000

    x11/fnott: sync icons fix with fuzzel
    
    (cherry picked from commit 39b2090290c46e84f6398f3ff18f7edeb6f926f4)
---
 x11/fnott/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x11/fnott/Makefile b/x11/fnott/Makefile
index 3094fea6f501..91915f10805d 100644
--- a/x11/fnott/Makefile
+++ b/x11/fnott/Makefile
@@ -24,7 +24,8 @@ USE_XORG=	pixman
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 post-patch:
-	@${REINPLACE_CMD} 's,/usr/local,${PREFIX},g' \
+# Respect PREFIX for icons
+	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
 		${WRKSRC}/xdg.c
 
 .include <bsd.port.mk>