2019-11-10 21:06:37 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# wlroots
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-05-18 15:54:19 +02:00
|
|
|
WLROOTS_VERSION = 0.13.0
|
2019-11-10 21:06:37 +01:00
|
|
|
WLROOTS_SITE = https://github.com/swaywm/wlroots/releases/download/$(WLROOTS_VERSION)
|
|
|
|
WLROOTS_LICENSE = MIT
|
2020-05-03 16:43:56 +02:00
|
|
|
WLROOTS_LICENSE_FILES = LICENSE
|
2019-11-10 21:06:37 +01:00
|
|
|
WLROOTS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
WLROOTS_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
host-wayland \
|
|
|
|
libinput \
|
|
|
|
libxkbcommon \
|
2021-02-13 13:33:53 +01:00
|
|
|
libegl \
|
|
|
|
libgles \
|
2019-11-10 21:06:37 +01:00
|
|
|
pixman \
|
|
|
|
udev \
|
|
|
|
wayland \
|
|
|
|
wayland-protocols
|
|
|
|
|
2021-05-18 15:54:22 +02:00
|
|
|
WLROOTS_CONF_OPTS = -Dexamples=false -Dxcb-errors=disabled
|
2019-11-10 21:06:37 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
|
WLROOTS_DEPENDENCIES += ffmpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
WLROOTS_DEPENDENCIES += libpng
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y)
|
|
|
|
WLROOTS_CONF_OPTS += -Dlogind=enabled -Dlogind-provider=systemd
|
|
|
|
WLROOTS_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
WLROOTS_CONF_OPTS += -Dlogind=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
|
2021-05-18 15:54:19 +02:00
|
|
|
WLROOTS_CONF_OPTS += -Dx11-backend=enabled -Dxwayland=enabled
|
|
|
|
WLROOTS_DEPENDENCIES += libxcb xcb-util-wm xcb-util-renderutil xlib_libX11
|
2019-11-10 21:06:37 +01:00
|
|
|
else
|
2021-05-18 15:54:19 +02:00
|
|
|
WLROOTS_CONF_OPTS += -Dx11-backend=disabled -Dxwayland=disabled
|
2019-11-10 21:06:37 +01:00
|
|
|
endif
|
|
|
|
|
2021-05-27 15:37:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SEATD),y)
|
2021-05-18 15:54:22 +02:00
|
|
|
WLROOTS_CONF_OPTS += -Dlibseat=enabled
|
|
|
|
WLROOTS_DEPENDENCIES += seatd
|
|
|
|
else
|
|
|
|
WLROOTS_CONF_OPTS += -Dlibseat=disabled
|
|
|
|
endif
|
|
|
|
|
2019-11-10 21:06:37 +01:00
|
|
|
$(eval $(meson-package))
|