1################################################################################
2#
3# kmscube
4#
5################################################################################
6
7KMSCUBE_VERSION = ea6c5d1eeefbfb0a1c27ab74a6e4621f1d9adf4c
8KMSCUBE_SITE = https://gitlab.freedesktop.org/mesa/kmscube/-/archive/$(KMSCUBE_VERSION)
9KMSCUBE_LICENSE = MIT
10KMSCUBE_LICENSE_FILES = COPYING
11KMSCUBE_DEPENDENCIES = host-pkgconf libdrm libegl libgbm libgles
12
13ifeq ($(BR2_PACKAGE_KMSCUBE_GSTREAMER),y)
14KMSCUBE_DEPENDENCIES += gst1-plugins-base gstreamer1 libglib2
15KMSCUBE_CONF_OPTS += -Dgstreamer=enabled
16else
17KMSCUBE_CONF_OPTS += -Dgstreamer=disabled
18endif
19
20ifeq ($(BR2_PACKAGE_LIBPNG),y)
21KMSCUBE_DEPENDENCIES += libpng
22# libpng is automatically detected in meson, there is no build
23# configuration option to pass.
24endif
25
26$(eval $(meson-package))
27