# $FreeBSD: tags/RELEASE_12_2_0/x11/libxkbcommon/Makefile 548498 2020-09-13 18:28:21Z zeising $

PORTNAME=	libxkbcommon
PORTVERSION=	1.0.1
CATEGORIES=	x11
MASTER_SITES=	https://xkbcommon.org/download/
DIST_SUBDIR=	xorg/lib

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Keymap handling library for toolkits and window systems

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	xkeyboard-config>0:x11/xkeyboard-config

USES=		bison gnome meson pkgconfig tar:xz
USE_GNOME=	libxml2
MESON_ARGS=	-Denable-docs=false \
		-Denable-wayland=false \
		-Dx-locale-root="${PREFIX}/lib/X11/locale"

OPTIONS_DEFINE=	X11
OPTIONS_DEFAULT=X11
OPTIONS_SUB=	yes

X11_USES=	xorg
X11_USE=	XORG=xcb
X11_MESON_TRUE=	enable-x11

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 1200000
MESON_ARGS+=	-Ddefault-rules=xorg
.endif

.include <bsd.port.post.mk>
