Commit 50695daa authored by Spenser Gilliland's avatar Spenser Gilliland Committed by Thomas Petazzoni
Browse files

libcec: add libcec for HDMI device Control



This patch adds libcec for HDMI device control.  It enables Raspberry Pi
support if the rpi-userland package is installed.

[Thomas: add C++ dependency, reformat .mk header.]
Signed-off-by: default avatarSpenser Gilliland <spenser@gillilanding.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent f2a00748
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -495,6 +495,7 @@ source "package/dtc/Config.in"
source "package/lcdapi/Config.in"
source "package/libaio/Config.in"
source "package/libatasmart/Config.in"
source "package/libcec/Config.in"
source "package/libraw1394/Config.in"
source "package/tslib/Config.in"
source "package/libfreefare/Config.in"
+12 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LIBCEC
	bool "libcec"
	depends on BR2_INSTALL_LIBSTDCPP
	help
	  libcec allows you in combination with the right hardware to
	  control your home theater devices with your TV remote
	  control utilizing existing HDMI cabling.

	  http://libcec.pulse-eight.com

comment "libcec requires C++ support in toolchain"
	depends on !BR2_INSTALL_LIBSTDCPP
+33 −0
Original line number Diff line number Diff line
################################################################################
#
# libcec
#
################################################################################

LIBCEC_VERSION = libcec-2.1.1
LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
LIBCEC_LICENSE = GPLv2+
LIBCEC_LICENSE_FILE = COPYING

# Autoreconf required due to being a dev tarball and not a release tarball.
LIBCEC_AUTORECONF = YES
LIBCEC_INSTALL_STAGING = YES
LIBCEC_DEPENDENCIES = host-pkgconf

ifeq ($(BR2_PACKAGE_LOCKDEV),y)
LIBCEC_DEPENDENCIES += lockdev
endif

ifeq ($(BR2_PACKAGE_UDEV),y)
LIBCEC_DEPENDENCIES += udev
endif

ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
LIBCEC_CONF_OPT = --enable-rpi \
   --with-rpi-include-path=$(STAGING_DIR)/usr/include
LIBCEC_DEPENDENCIES += rpi-userland
else
LIBCEC_CONF_OPT = --disable-rpi
endif

$(eval $(autotools-package))