summaryrefslogtreecommitdiff
path: root/x11-wm/swayfx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/swayfx/Makefile')
-rw-r--r--x11-wm/swayfx/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/x11-wm/swayfx/Makefile b/x11-wm/swayfx/Makefile
index 4b1152132f20..f53808ea6c88 100644
--- a/x11-wm/swayfx/Makefile
+++ b/x11-wm/swayfx/Makefile
@@ -1,5 +1,5 @@
PORTNAME= sway
-DISTVERSION= 0.5.1
+DISTVERSION= 0.5.3
CATEGORIES= x11-wm wayland
PKGNAMESUFFIX= ${GH_PROJECT:S/${PORTNAME}//}
@@ -18,8 +18,8 @@ LIB_DEPENDS= libjson-c.so:devel/json-c \
libpcre2-8.so:devel/pcre2 \
libdrm.so:graphics/libdrm \
libwayland-egl.so:graphics/wayland \
- libscenefx-0.3.so:x11-toolkits/scenefx03 \
- libwlroots-0.18.so:x11-toolkits/wlroots018 \
+ libscenefx-0.4.so:x11-toolkits/scenefx04 \
+ libwlroots-0.19.so:x11-toolkits/wlroots019 \
libinput.so:x11/libinput \
libxkbcommon.so:x11/libxkbcommon
@@ -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,5 +70,10 @@ post-patch:
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
${WRKSRC}/meson.build
+.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
+.endif
.include <bsd.port.mk>