summaryrefslogtreecommitdiff
path: root/x11/libxkbcommon/Makefile
blob: 5e9d87888c886cfd77eb8f3030b4b2ada2ccbc50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PORTNAME=	libxkbcommon
DISTVERSION=	1.8.1
PORTREVISION=	3
CATEGORIES=	x11

PATCH_SITES=	https://github.com/xkbcommon/libxkbcommon/commit/
PATCHFILES=	d7e112febb7ab756563da6eced0a650396be5945.patch:-p1

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Keymap handling library for toolkits and window systems
WWW=		https://xkbcommon.org/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

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

USES=		bison compiler:c11 cpe gnome meson pkgconfig python:test \
		shebangfix
CPE_VENDOR=	xkbcommon
SHEBANG_FILES=	test/xkeyboard-config-test.py.in \
		test/*.py
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	xkbcommon
GH_TAGNAME=	${GH_ACCOUNT}-${DISTVERSION}

HAS_SYMBOL_VERSION=	${PREFIX}/lib/libxkbregistry.so.0.8.1

MESON_ARGS=	-Denable-docs=false \
		-Dx-locale-root="${PREFIX}/lib/X11/locale"

OPTIONS_DEFINE=	EVDEV WAYLAND X11
OPTIONS_DEFAULT=EVDEV WAYLAND X11
OPTIONS_SUB=	yes

EVDEV_DESC=		Interactive debugger for XKB keymaps for evdev
EVDEV_BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
EVDEV_USES=		localbase

WAYLAND_BUILD_DEPENDS=	wayland-protocols>=1.12:graphics/wayland-protocols
WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
WAYLAND_MESON_TRUE=	enable-wayland

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

.include <bsd.port.mk>