aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-03-31 08:17:12 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-03-31 10:50:49 +0000
commit05587975b932385467d2b65a99596f56b360d48a (patch)
tree464cfc8f0b8fd3f5b60e777f8728f9cb51c4c60d
parent823c6de7141edf0f116475da2191d1f5af2b078e (diff)
downloadports-05587975b932385467d2b65a99596f56b360d48a.tar.gz
ports-05587975b932385467d2b65a99596f56b360d48a.zip
x11/fnott: respect PREFIX for config after 272ba1db96af
(cherry picked from commit 3824d8733328e4eab0abeb209aa6bde2285c1003)
-rw-r--r--x11/fnott/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/fnott/Makefile b/x11/fnott/Makefile
index f08d9d385f4b..8f3ef343205c 100644
--- a/x11/fnott/Makefile
+++ b/x11/fnott/Makefile
@@ -1,5 +1,6 @@
PORTNAME= fnott
DISTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= x11 wayland
MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
@@ -25,6 +26,10 @@ USE_XORG= pixman
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
+# Respect PREFIX for system-wide config
+ @${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
+ ${WRKSRC}/config.c \
+ ${WRKSRC}/doc/${PORTNAME}.ini.5.scd
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/xdg.c