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

SOURCE_DIR=	${WRKSRC}/wayland-protocols-${PORTVERSION}
BUILD_STYLE=	meson
CONFIGURE_ARGS=	-Dtests=false

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

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