summaryrefslogtreecommitdiff
path: root/x11-wm/swayfx
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/swayfx')
-rw-r--r--x11-wm/swayfx/Makefile13
-rw-r--r--x11-wm/swayfx/distinfo6
-rw-r--r--x11-wm/swayfx/files/extra-patch-wordexp (renamed from x11-wm/swayfx/files/patch-common_stringop.c)0
3 files changed, 14 insertions, 5 deletions
diff --git a/x11-wm/swayfx/Makefile b/x11-wm/swayfx/Makefile
index 3905e9713045..f53808ea6c88 100644
--- a/x11-wm/swayfx/Makefile
+++ b/x11-wm/swayfx/Makefile
@@ -1,5 +1,5 @@
PORTNAME= sway
-DISTVERSION= 0.5.2
+DISTVERSION= 0.5.3
CATEGORIES= x11-wm wayland
PKGNAMESUFFIX= ${GH_PROJECT:S/${PORTNAME}//}
@@ -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/distinfo b/x11-wm/swayfx/distinfo
index f6ff68ffc12d..4ef881b7a5b2 100644
--- a/x11-wm/swayfx/distinfo
+++ b/x11-wm/swayfx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1750743210
-SHA256 (WillPower3309-swayfx-0.5.2_GH0.tar.gz) = 075e1a9577f96a71154c61997355dce569816fff05a2c535ec15b252a9acbbe1
-SIZE (WillPower3309-swayfx-0.5.2_GH0.tar.gz) = 17597449
+TIMESTAMP = 1751070411
+SHA256 (WillPower3309-swayfx-0.5.3_GH0.tar.gz) = e6345e198f128520cf422b458ac8ad9759c3a6c8f633d7b722655309f8a14b9e
+SIZE (WillPower3309-swayfx-0.5.3_GH0.tar.gz) = 17597207
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