2016-07-28 21:38:25 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# kmsxx
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-11-29 18:56:33 +01:00
|
|
|
KMSXX_VERSION = 548905611c130ea9d31929a0caf7a198d8bac462
|
2016-07-28 21:38:25 +02:00
|
|
|
KMSXX_SITE = $(call github,tomba,kmsxx,$(KMSXX_VERSION))
|
2017-03-30 15:43:42 +02:00
|
|
|
KMSXX_LICENSE = MPL-2.0
|
2016-07-28 21:38:25 +02:00
|
|
|
KMSXX_LICENSE_FILES = LICENSE
|
|
|
|
KMSXX_INSTALL_STAGING = YES
|
2020-11-29 18:56:33 +01:00
|
|
|
KMSXX_DEPENDENCIES = fmt libdrm host-pkgconf
|
|
|
|
KMSXX_CONF_OPTS = \
|
|
|
|
-Dkmscube=false \
|
|
|
|
-Dpykms=disabled \
|
|
|
|
-Domap=disabled \
|
|
|
|
-Duse-system-fmt=true \
|
|
|
|
-Duse-system-pybind11=true
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
KMSXX_CONF_OPTS += -Dstatic-libc=true
|
|
|
|
else
|
|
|
|
KMSXX_CONF_OPTS += -Dstatic-libc=false
|
|
|
|
endif
|
2019-06-14 23:03:32 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
2020-11-29 18:56:33 +01:00
|
|
|
KMSXX_CXXFLAGS += $(TARGET_CXXFLAGS) -O0
|
2019-06-14 23:03:32 +02:00
|
|
|
endif
|
|
|
|
|
2016-07-28 21:38:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS),y)
|
2020-11-29 18:56:33 +01:00
|
|
|
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) \
|
2016-07-28 21:38:25 +02:00
|
|
|
$(TARGET_DIR)/usr/bin/$(t)
|
|
|
|
)
|
|
|
|
endef
|
2020-11-29 18:56:33 +01:00
|
|
|
KMSXX_POST_INSTALL_TARGET_HOOKS += KMSXX_INSTALL_EXTRA_UTILS
|
|
|
|
else
|
|
|
|
KMSXX_CONF_OPTS += -Dutils=false
|
2016-07-28 21:38:25 +02:00
|
|
|
endif
|
|
|
|
|
2020-11-29 18:56:33 +01:00
|
|
|
$(eval $(meson-package))
|