2013-05-09 02:55:27 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcec
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-03-29 05:48:28 +08:00
|
|
|
LIBCEC_VERSION = 91da1b6d5daecd3c85a1ac06d325ee4554f69b83
|
|
|
|
LIBCEC_SITE = $(call github,Pulse-Eight,libcec,$(LIBCEC_VERSION))
|
2017-03-30 21:43:32 +08:00
|
|
|
LIBCEC_LICENSE = GPL-2.0+
|
2013-08-02 16:57:31 +08:00
|
|
|
LIBCEC_LICENSE_FILES = COPYING
|
2013-05-09 02:55:27 +08:00
|
|
|
|
|
|
|
LIBCEC_INSTALL_STAGING = YES
|
2015-07-23 04:30:25 +08:00
|
|
|
LIBCEC_DEPENDENCIES = host-pkgconf libplatform
|
2013-05-09 02:55:27 +08:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LOCKDEV),y)
|
|
|
|
LIBCEC_DEPENDENCIES += lockdev
|
|
|
|
endif
|
|
|
|
|
2014-02-07 21:21:33 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2013-05-09 02:55:27 +08:00
|
|
|
LIBCEC_DEPENDENCIES += udev
|
|
|
|
endif
|
|
|
|
|
2015-07-23 04:30:25 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
LIBCEC_DEPENDENCIES += host-swig $(if $(BR2_PACKAGE_PYTHON3),python3,python)
|
|
|
|
endif
|
|
|
|
|
2013-05-09 02:55:27 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
|
|
|
LIBCEC_DEPENDENCIES += rpi-userland
|
2015-07-23 04:30:25 +08:00
|
|
|
LIBCEC_CONF_OPTS += \
|
2016-10-16 19:12:42 +08:00
|
|
|
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -lvcos -lvchiq_arm" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) \
|
|
|
|
-I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux \
|
2015-07-23 04:30:25 +08:00
|
|
|
-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
|
|
|
LIBCEC_DEPENDENCIES += xlib_libXrandr
|
2013-05-09 02:55:27 +08:00
|
|
|
endif
|
|
|
|
|
2018-04-19 05:13:30 +08:00
|
|
|
# Disable information about how libCEC is compiled.
|
|
|
|
LIBCEC_CONF_OPTS += -DHAVE_GIT_BIN="" \
|
|
|
|
-DHAVE_DATE_BIN="" \
|
|
|
|
-DHAVE_WHOAMI_BIN="" \
|
|
|
|
-DHAVE_HOSTNAME_BIN="" \
|
|
|
|
-DHAVE_UNAME_BIN=""
|
|
|
|
|
2015-07-23 04:30:25 +08:00
|
|
|
$(eval $(cmake-package))
|