toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / libcec / libcec.mk
blob55c5fbb83db744c63be860c656fb37ff7edfb04a
1 ################################################################################
3 # libcec
5 ################################################################################
7 LIBCEC_VERSION = 2c675dac48387c48c7f43c5d2547ef0c4ef5c7dd
8 LIBCEC_SITE = $(call github,Pulse-Eight,libcec,$(LIBCEC_VERSION))
9 LIBCEC_LICENSE = GPLv2+
10 LIBCEC_LICENSE_FILES = COPYING
12 # Autoreconf required due to being a dev tarball and not a release tarball.
13 LIBCEC_AUTORECONF = YES
14 LIBCEC_INSTALL_STAGING = YES
15 LIBCEC_DEPENDENCIES = host-pkgconf libplatform
17 ifeq ($(BR2_PACKAGE_LOCKDEV),y)
18 LIBCEC_DEPENDENCIES += lockdev
19 endif
21 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
22 LIBCEC_DEPENDENCIES += udev
23 endif
25 ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
26 LIBCEC_DEPENDENCIES += host-swig $(if $(BR2_PACKAGE_PYTHON3),python3,python)
27 endif
29 ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
30 LIBCEC_DEPENDENCIES += rpi-userland
31 LIBCEC_CONF_OPTS += \
32 -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -lvcos -lvchiq_arm" \
33 -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) \
34 -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux \
35 -I$(STAGING_DIR)/usr/include/interface/vcos/pthreads"
36 endif
38 ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
39 LIBCEC_DEPENDENCIES += xlib_libXrandr
40 endif
42 $(eval $(cmake-package))