diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile index 2f33fe1a3d01..ddca69c72f33 100644 --- a/x11/xdg-desktop-portal-hyprland/Makefile +++ b/x11/xdg-desktop-portal-hyprland/Makefile @@ -1,65 +1,60 @@ PORTNAME= xdg-desktop-portal-hyprland DISTVERSIONPREFIX= v DISTVERSION= 0.5.0 CATEGORIES= x11 wayland PATCH_SITES+= https://github.com/emersion/xdg-desktop-portal-wlr/commit/:wlr PATCHFILES+= 8453779cf394.patch:-p1:wlr # https://github.com/emersion/xdg-desktop-portal-wlr/pull/279 MAINTAINER= jbeich@FreeBSD.org COMMENT= xdg-desktop-portal backend for hyprland WWW= https://github.com/hyprwm/xdg-desktop-portal-hyprland LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= wayland-protocols>=1.24:graphics/wayland-protocols LIB_DEPENDS= libbasu.so:devel/basu \ libinih.so:devel/inih \ libdrm.so:graphics/libdrm \ libwayland-client.so:graphics/wayland \ libuuid.so:misc/e2fsprogs-libuuid \ libpipewire-0.3.so:multimedia/pipewire RUN_DEPENDS= grim:x11/grim \ - hyprland-share-picker:x11/hyprland-share-picker@${FLAVOR} + hyprland-share-picker:x11/hyprland-share-picker@${FLAVOR} \ + slurp:x11/slurp FLAVORS= qt5 qt6 qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6 qt6_CONFLICTS_INSTALL= ${PORTNAME} qt6_PKGNAMESUFFIX= -qt6 USES= compiler:c11 gl meson pkgconfig USE_GITHUB= yes USE_GL= gbm GH_ACCOUNT= hyprwm GH_TUPLE= hyprwm:hyprland-protocols:4d29e48:hyprland_protocols/subprojects/hyprland-protocols MESON_ARGS= -Dsd-bus-provider=basu -Dsystemd=disabled PLIST_FILES= libexec/${PORTNAME} \ share/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland.service \ share/xdg-desktop-portal/portals/hyprland.portal # XXX Drop after FreeBSD 13.4 EOL around 2026-01-31 # https://cgit.freebsd.org/src/commit/?id=af93fea71038 .if !exists(/usr/include/sys/timerfd.h) LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim .endif -OPTIONS_DEFINE= SLURP -OPTIONS_DEFAULT=SLURP - -SLURP_DESC= Simple output chooser -SLURP_RUN_DEPENDS= slurp:x11/slurp - .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097 CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE .endif .ifdef GH_TUPLE post-configure: @${REINPLACE_CMD} 's/meson install/& \ --skip-subprojects/' ${BUILD_WRKSRC}/build.ninja .endif .include diff --git a/x11/xdg-desktop-portal-wlr/Makefile b/x11/xdg-desktop-portal-wlr/Makefile index 11b6bbe2aad4..0007c79c55e4 100644 --- a/x11/xdg-desktop-portal-wlr/Makefile +++ b/x11/xdg-desktop-portal-wlr/Makefile @@ -1,60 +1,58 @@ PORTNAME= xdg-desktop-portal-wlr DISTVERSIONPREFIX= v DISTVERSION= 0.7.0 PORTREVISION= 1 CATEGORIES= x11 wayland PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= 8453779cf394.patch:-p1 # https://github.com/emersion/xdg-desktop-portal-wlr/pull/279 MAINTAINER= jbeich@FreeBSD.org COMMENT= xdg-desktop-portal backend for wlroots WWW= https://github.com/emersion/xdg-desktop-portal-wlr LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= wayland-protocols>=1.24:graphics/wayland-protocols LIB_DEPENDS= libbasu.so:devel/basu \ libinih.so:devel/inih \ libdrm.so:graphics/libdrm \ libwayland-client.so:graphics/wayland \ libpipewire-0.3.so:multimedia/pipewire -RUN_DEPENDS= grim:x11/grim +RUN_DEPENDS= grim:x11/grim \ + slurp:x11/slurp USES= compiler:c11 gl meson pkgconfig USE_GITHUB= yes USE_GL= gbm GH_ACCOUNT= emersion MESON_ARGS= -Dsd-bus-provider=basu -Dsystemd=disabled PLIST_FILES= libexec/${PORTNAME} \ share/dbus-1/services/org.freedesktop.impl.portal.desktop.wlr.service \ share/xdg-desktop-portal/portals/wlr.portal # XXX Drop after FreeBSD 13.4 EOL around 2026-01-31 # https://cgit.freebsd.org/src/commit/?id=af93fea71038 .if !exists(/usr/include/sys/timerfd.h) LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim .endif -OPTIONS_DEFINE= MANPAGES SLURP -OPTIONS_DEFAULT=MANPAGES SLURP +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT=MANPAGES MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc MANPAGES_MESON_ENABLED= man-pages MANPAGES_PLIST_FILES= man/man5/${PORTNAME}.5.gz -SLURP_DESC= Simple output chooser -SLURP_RUN_DEPENDS= slurp:x11/slurp - .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097 CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE .endif post-patch: @${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \ ${WRKSRC}/${PORTNAME}.5.scd .include