aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/wlroots/Makefile
blob: 3ce17294ce9e25ffaca02d481bda8b53f2101eab (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
# $FreeBSD$

PORTNAME=	wlroots
DISTVERSION=	0.2-123
DISTVERSIONSUFFIX=	-g10a2c4ed
CATEGORIES=	x11-toolkits

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Modular Wayland compositor library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
		wayland-protocols>=1.15:graphics/wayland-protocols
LIB_DEPENDS=	libudev.so:devel/libudev-devd \
		libdrm.so:graphics/libdrm \
		libwayland-egl.so:graphics/wayland \
		libinput.so:x11/libinput \
		libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS=	xkeyboard-config>0:x11/xkeyboard-config

USES=		compiler:c11 gl meson pkgconfig
USE_GITHUB=	yes
USE_GL=		egl gbm glesv2
USE_XORG=	pixman
USE_LDCONFIG=	yes
GH_ACCOUNT=	swaywm
MESON_ARGS=	-Dexamples=false

# https://github.com/swaywm/wlroots/issues/1450
LLD_UNSAFE=	yes

OPTIONS_DEFINE=	X11
OPTIONS_DEFAULT=X11
OPTIONS_SUB=	yes

X11_LIB_DEPENDS=libxcb-errors.so:x11/xcb-util-errors \
		libxcb-icccm.so:x11/xcb-util-wm
X11_RUN_DEPENDS=Xwayland:x11-servers/xwayland
X11_USE=	XORG=x11,xcb
X11_MESON_ON=	-Dx11-backend=enabled  -Dxcb-icccm=enabled  -Dxwayland=enabled
X11_MESON_OFF=	-Dx11-backend=disabled -Dxcb-icccm=disabled -Dxwayland=disabled

post-patch:
# Ignore unused dependencies
	@${REINPLACE_CMD} '/examples/d' ${WRKSRC}/meson.build

.include <bsd.port.mk>