PORTNAME=	xdg-desktop-portal
PORTVERSION=	1.16.0
CATEGORIES=	deskutils wayland

MAINTAINER=	arrowd@FreeBSD.org
COMMENT=	Portal frontend service for Flatpak
WWW=		https://github.com/flatpak/xdg-desktop-portal

LICENSE=	LGPL21

LIB_DEPENDS=	libfuse3.so:sysutils/fusefs-libs3 \
		libgeoclue-2.so:net/geoclue \
		libjson-glib-1.0.so:devel/json-glib \
		libpipewire-0.3.so:multimedia/pipewire \
		libportal.so:deskutils/libportal

USES=		gettext-tools gmake gnome meson pkgconfig

USE_GNOME=	glib20

USE_GITHUB=	yes
GH_ACCOUNT=	flatpak

.include <bsd.port.pre.mk>

.if (${OSVERSION} >= 1400000 && ${OSVERSION} < 1400008) \
 || ${OSVERSION} < 1300000
IGNORE=		requires O_PATH support in open(2)
.endif

post-install:
	@${RM} -r ${STAGEDIR}${PREFIX}/lib/systemd

.include <bsd.port.post.mk>
