2016-07-28 21:38:25 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# kmsxx
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-06-21 16:33:45 +02:00
|
|
|
KMSXX_VERSION = cb0786049f960f2bd383617151b01318e02e9ff9
|
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
|
|
|
|
KMSXX_DEPENDENCIES = libdrm host-pkgconf
|
|
|
|
KMSXX_CONF_OPTS = -DKMSXX_ENABLE_PYTHON=OFF
|
|
|
|
|
2017-02-14 15:10:06 +01:00
|
|
|
# Internal error, aborting at dw2gencfi.c:214 in emit_expr_encoded
|
|
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509
|
|
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
|
|
KMSXX_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -fno-dwarf2-cfi-asm"
|
|
|
|
endif
|
|
|
|
|
2016-07-28 21:38:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS),y)
|
|
|
|
KMSXX_TESTS = \
|
2017-06-21 16:33:45 +02:00
|
|
|
fbtest kmsblank kmscapture \
|
|
|
|
kmsprint kmstest kmsview wbcap \
|
2016-07-28 21:38:25 +02:00
|
|
|
wbm2m
|
|
|
|
|
|
|
|
define KMSXX_INSTALL_TARGET_TESTS
|
|
|
|
$(foreach t,$(KMSXX_TESTS),\
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/$(t) \
|
|
|
|
$(TARGET_DIR)/usr/bin/$(t)
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
KMSXX_LIBS = kms++ kms++util
|
|
|
|
|
|
|
|
define KMSXX_INSTALL_TARGET_CMDS
|
2016-08-05 20:05:01 +02:00
|
|
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
|
|
|
|
$(foreach l,$(KMSXX_LIBS),\
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
|
|
|
$(TARGET_DIR)/usr/lib/lib$(l).so
|
|
|
|
)
|
2016-07-28 21:38:25 +02:00
|
|
|
)
|
|
|
|
$(KMSXX_INSTALL_TARGET_TESTS)
|
|
|
|
endef
|
|
|
|
|
2018-01-10 22:19:14 +01:00
|
|
|
# kmsxx only builds shared or static libraries, so when
|
|
|
|
# BR2_SHARED_STATIC_LIBS=y, we don't have any static library to
|
|
|
|
# install
|
2016-07-28 21:38:25 +02:00
|
|
|
define KMSXX_INSTALL_STAGING_CMDS
|
|
|
|
$(foreach l,$(KMSXX_LIBS),\
|
2016-08-05 20:05:01 +02:00
|
|
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
|
|
|
|
$(STAGING_DIR)/usr/lib/lib$(l).so)
|
2018-01-10 22:19:14 +01:00
|
|
|
$(if $(BR2_STATIC_LIBS),
|
2016-08-05 20:05:01 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \
|
|
|
|
$(STAGING_DIR)/usr/lib/lib$(l).a)
|
2016-08-05 20:05:00 +02:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/include/$(l)
|
2016-07-28 21:38:25 +02:00
|
|
|
cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|