2013-05-08 20:55:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcec
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-02-20 23:09:09 +01:00
|
|
|
LIBCEC_VERSION = 2c675dac48387c48c7f43c5d2547ef0c4ef5c7dd
|
2013-12-05 18:20:46 +01:00
|
|
|
LIBCEC_SITE = $(call github,Pulse-Eight,libcec,$(LIBCEC_VERSION))
|
2013-05-08 20:55:27 +02:00
|
|
|
LIBCEC_LICENSE = GPLv2+
|
2013-08-02 10:57:31 +02:00
|
|
|
LIBCEC_LICENSE_FILES = COPYING
|
2013-05-08 20:55:27 +02:00
|
|
|
|
|
|
|
# Autoreconf required due to being a dev tarball and not a release tarball.
|
|
|
|
LIBCEC_AUTORECONF = YES
|
|
|
|
LIBCEC_INSTALL_STAGING = YES
|
2015-07-22 22:30:25 +02:00
|
|
|
LIBCEC_DEPENDENCIES = host-pkgconf libplatform
|
2013-05-08 20:55:27 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LOCKDEV),y)
|
|
|
|
LIBCEC_DEPENDENCIES += lockdev
|
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2013-05-08 20:55:27 +02:00
|
|
|
LIBCEC_DEPENDENCIES += udev
|
|
|
|
endif
|
|
|
|
|
2015-07-22 22:30:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
LIBCEC_DEPENDENCIES += host-swig $(if $(BR2_PACKAGE_PYTHON3),python3,python)
|
|
|
|
endif
|
|
|
|
|
2013-05-08 20:55:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
|
|
|
LIBCEC_DEPENDENCIES += rpi-userland
|
2015-07-22 22:30:25 +02:00
|
|
|
LIBCEC_CONF_OPTS += \
|
|
|
|
-DCMAKE_C_FLAGS="-lvcos -lvchiq_arm" \
|
|
|
|
-DCMAKE_CXX_FLAGS="-I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux \
|
|
|
|
-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
|
|
|
LIBCEC_DEPENDENCIES += xlib_libXrandr
|
2013-05-08 20:55:27 +02:00
|
|
|
endif
|
|
|
|
|
2015-07-22 22:30:25 +02:00
|
|
|
$(eval $(cmake-package))
|