summaryrefslogtreecommitdiff
path: root/x11-wm/swayfx
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/swayfx')
-rw-r--r--x11-wm/swayfx/Makefile11
-rw-r--r--x11-wm/swayfx/files/extra-patch-wordexp (renamed from x11-wm/swayfx/files/patch-common_stringop.c)0
2 files changed, 10 insertions, 1 deletions
diff --git a/x11-wm/swayfx/Makefile b/x11-wm/swayfx/Makefile
index 6d9cf7561faa..f53808ea6c88 100644
--- a/x11-wm/swayfx/Makefile
+++ b/x11-wm/swayfx/Makefile
@@ -53,6 +53,15 @@ SWAYBG_RUN_DEPENDS= swaybg:x11/swaybg
X11_USE= XORG=xcb
X11_LIB_DEPENDS= libxcb-icccm.so:x11/xcb-util-wm
+.include <bsd.port.options.mk>
+
+# https://github.com/freebsd/freebsd-src/pull/1675
+.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1305503 \
+ || ${OSVERSION} >= 1400000 && ${OSVERSION} < 1403505 \
+ || ${OSVERSION} >= 1500000 && ${OSVERSION} < 1500052)
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-wordexp
+.endif
+
post-patch:
# Let @sample handle default files under etc/
@${REINPLACE_CMD} -e '/config\.in/{ N; s/@BASENAME@/&.sample/; }' \
@@ -61,7 +70,7 @@ post-patch:
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
${WRKSRC}/meson.build
-.if exists(${.CURDIR}/files/patch-common_stringop.c)
+.if exists(${.CURDIR}/files/extra-patch-wordexp)
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275328
@${REINPLACE_CMD} -e 's/_POSIX_C_SOURCE=200809L/_XOPEN_SOURCE=700/' \
${WRKSRC}/meson.build
diff --git a/x11-wm/swayfx/files/patch-common_stringop.c b/x11-wm/swayfx/files/extra-patch-wordexp
index 5a9f187e11df..5a9f187e11df 100644
--- a/x11-wm/swayfx/files/patch-common_stringop.c
+++ b/x11-wm/swayfx/files/extra-patch-wordexp