x11/swayimg: system config under PREFIX after 7a53589a40

(cherry picked from commit 3d3c629518)
This commit is contained in:
Jan Beich 2023-01-29 09:54:24 +00:00
parent b9f82a3cb7
commit 197302b445

View File

@ -1,6 +1,7 @@
PORTNAME= swayimg
DISTVERSIONPREFIX= v
DISTVERSION= 1.9
PORTREVISION= 1
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
@ -69,4 +70,10 @@ WEBP_MESON_ENABLED= webp
ZSH_MESON_ENABLED= zsh
ZSH_PLIST_FILES= share/zsh/site-functions/_${PORTNAME}
post-patch:
# Respect PREFIX for system-wide config
@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \
${WRKSRC}/extra/${PORTNAME}rc.5 \
${WRKSRC}/src/config.c
.include <bsd.port.mk>