diff options
author | Spenser Gilliland <spenser@gillilanding.com> | 2013-05-08 13:55:27 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-07-29 21:30:40 +0200 |
commit | 50695daad6bd76f43cacf9bbaa753bcebd84a38b (patch) | |
tree | 4dbf8e946240b266859a23e92a5cb8fc6e9b6d98 | |
parent | f2a007480cab92c359432b9fa307eb48c5510086 (diff) | |
download | buildroot-50695daad6bd76f43cacf9bbaa753bcebd84a38b.tar.gz buildroot-50695daad6bd76f43cacf9bbaa753bcebd84a38b.zip |
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: Spenser Gilliland <spenser@gillilanding.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/libcec/Config.in | 12 | ||||
-rw-r--r-- | package/libcec/libcec.mk | 33 |
3 files changed, 46 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 5189b23eba..6dfab7bdd8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/libcec/Config.in b/package/libcec/Config.in new file mode 100644 index 0000000000..b1fa03b057 --- /dev/null +++ b/package/libcec/Config.in @@ -0,0 +1,12 @@ +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 diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk new file mode 100644 index 0000000000..49fa067dda --- /dev/null +++ b/package/libcec/libcec.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# 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)) |