ecb72b118a
We can drop all the patches as they have been sorted out in upstream. The wrapped fmt was dropped, so drop the corresponding option. The option to use a system pybind11 was named differently upstream, as a feature rather as a boolean. Adapt accordingly. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> [yann.morin.1998@free.fr: explain dropped/changed options] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# kmsxx
|
|
#
|
|
################################################################################
|
|
|
|
KMSXX_VERSION = 824bbb1f4cd062d66b457faca50f904b34dfd96c
|
|
KMSXX_SITE = $(call github,tomba,kmsxx,$(KMSXX_VERSION))
|
|
KMSXX_LICENSE = MPL-2.0
|
|
KMSXX_LICENSE_FILES = LICENSE
|
|
KMSXX_INSTALL_STAGING = YES
|
|
KMSXX_DEPENDENCIES = fmt libdrm host-pkgconf
|
|
KMSXX_CONF_OPTS = \
|
|
-Dkmscube=false \
|
|
-Dpykms=disabled \
|
|
-Domap=disabled \
|
|
-Dsystem-pybind11=enabled
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
KMSXX_CXXFLAGS += $(TARGET_CXXFLAGS) -O0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS),y)
|
|
KMSXX_CONF_OPTS += -Dutils=true
|
|
# extra handling for some utils not installed by default
|
|
KMSXX_EXTRA_UTILS = kmsview kmscapture omap-wbcap omap-wbm2m
|
|
ifeq ($(BR2_PACKAGE_LIBEVDEV),y)
|
|
KMSXX_DEPENDENCIES += libevdev
|
|
KMSXX_EXTRA_UTILS += kmstouch
|
|
endif
|
|
define KMSXX_INSTALL_EXTRA_UTILS
|
|
$(foreach t,$(KMSXX_EXTRA_UTILS),\
|
|
$(INSTALL) -D -m 0755 $(@D)/build/utils/$(t) \
|
|
$(TARGET_DIR)/usr/bin/$(t)
|
|
)
|
|
endef
|
|
KMSXX_POST_INSTALL_TARGET_HOOKS += KMSXX_INSTALL_EXTRA_UTILS
|
|
else
|
|
KMSXX_CONF_OPTS += -Dutils=false
|
|
endif
|
|
|
|
$(eval $(meson-package))
|