From patchwork Thu Feb 21 14:58:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06/13] libcec: new package Date: Thu, 21 Feb 2013 04:58:36 -0000 From: Maxime Hadjinlian X-Patchwork-Id: 222315 Message-Id: To: buildroot@busybox.net libCEC allows you in combination with the right hardware to control your device with your TV remote control. Utilising your existing HDMI cabling This package was originally found at : https://github.com/huceke/buildroot-rbp By gimli Signed-off-by: Maxime Hadjinlian --- package/Config.in | 1 + package/libcec/Config.in | 30 ++++++++++++++++++++++++++++++ package/libcec/libcec.mk | 22 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 package/libcec/Config.in create mode 100644 package/libcec/libcec.mk diff --git a/package/Config.in b/package/Config.in index 2106391..c6e1fd4 100644 --- a/package/Config.in +++ b/package/Config.in @@ -448,6 +448,7 @@ source "package/imx-lib/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 0000000..5051b94 --- /dev/null +++ b/package/libcec/Config.in @@ -0,0 +1,30 @@ +config BR2_PACKAGE_LIBCEC + bool "libcec" + select BR2_PACKAGE_LOCKDEV + depends on BR2_USE_WCHAR + depends on BR2_INSTALL_LIBSTDCPP + help + libCEC allows you in combination with the right hardware to + control your device with your TV remote control. Utilising your + existing HDMI cabling. + + https://github.com/Pulse-Eight/libcec + +if BR2_PACKAGE_LIBCEC && BR2_arm + +config BR2_PACKAGE_LIBCEC_RBP + bool "rpi support" + depends on BR2_LARGEFILE + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_RPI_USERLAND + help + Enable RasberryPi support + +comment "rpi support requires a toolchain with LARGEFILE and C++ support" + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_LARGEFILE) + +endif + +comment "libcec requires a toolchain with WCHAR and C++ support" + depends on !(BR2_USE_WCHAR && BR2_INSTALL_LIBSTDCPP) + diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk new file mode 100644 index 0000000..2974cbf --- /dev/null +++ b/package/libcec/libcec.mk @@ -0,0 +1,22 @@ +############################################################# +# +# libcec +# +############################################################# + +LIBCEC_VERSION = 89ea1724e7a4bde3f7a4f958b414889cefddb841 +LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/master +LIBCEC_INSTALL_STAGING = YES +LIBCEC_AUTORECONF = YES +LIBCEC_LICENSE = GPLv2 +LIBCEC_LICENSE_FILES = COPYING +LIBCEC_DEPENDENCIES = lockdev host-pkgconf + +ifeq ($(BR2_PACKAGE_LIBCEC_RBP),y) +LIBCEC_DEPENDENCIES += rpi-userland +LIBCEC_CONF_OPT += --enable-rpi \ + --with-rpi-lib-path=$(STAGING_DIR)/usr/lib \ + --with-rpi-include-path=$(STAGING_DIR)/usr/include +endif + +$(eval $(autotools-package))