PORTNAME=	wayland
PORTVERSION=	1.25.0
CATEGORIES=	graphics
MASTER_SITES=	https://gitlab.freedesktop.org/wayland/wayland/-/releases/${PORTVERSION}/downloads/
DISTFILES=	wayland-${PORTVERSION}.tar.xz

SOURCE_DIR=	${WRKSRC}/wayland-${PORTVERSION}
BUILD_STYLE=	meson
RUN_DEPENDS=	expat:textproc/expat libffi:devel/libffi
CONFIGURE_ARGS=	-Ddocumentation=false -Ddtd_validation=false -Dtests=false

do-install:
	env DESTDIR="${STAGEDIR}" ${NINJA} -C "${BUILD_DIR}" install
	mkdir -p "${STAGEDIR}${PREFIX}/share/licenses/wayland"
	install -m 0644 "${SOURCE_DIR}/COPYING" \
	    "${STAGEDIR}${PREFIX}/share/licenses/wayland/COPYING"

.include "${.PARSEDIR}/../../Mk/mouse.port.mk"
