Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= libcec
  5. PKG_VERSION:= d156e7cb684f86a9d73f8dcf087d4799c62d9721
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= control your device with your tv remote control
  8. PKG_SECTION:= libs/video
  9. PKG_DEPENDS:= libudev libplatform
  10. PKG_BUILDDEP:= eudev cmake-host platform
  11. PKG_URL:= http://libcec.pulse-eight.com/
  12. PKG_SITES:= https://github.com/Pulse-Eight/libcec.git
  13. PKG_OPTS:= dev
  14. PKG_DEPENDS_RASPBERRY_PI2:= bcm28xx-vc
  15. PKG_BUILDDEP_RASPBERRY_PI2:= bcm28xx-vc
  16. PKG_DEPENDS_RASPBERRY_PI:= bcm28xx-vc
  17. PKG_BUILDDEP_RASPBERRY_PI:= bcm28xx-vc
  18. PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 solidrun-imx6
  19. include $(ADK_TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,LIBCEC,libcec,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  22. TARGET_LDFLAGS+= -ltinfo
  23. TARGET_CXXFLAGS+= -I$(STAGING_TARGET_DIR)/opt/vc/include \
  24. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
  25. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux \
  26. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host \
  27. -L$(STAGING_TARGET_DIR)/opt/vc/lib
  28. CONFIG_STYLE:= cmake
  29. CMAKE_FLAGS+= -DSKIP_PYTHON_WRAPPER=1 -DBUILD_SHARED_LIBS=1
  30. ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
  31. CMAKE_FLAGS+= -DHAVE_RPI_API=1 -DRPI_LIB_DIR=$(STAGING_TARGET_DIR)/opt/vc/lib
  32. endif
  33. ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
  34. CMAKE_FLAGS+= -DHAVE_IMX_API=1
  35. endif
  36. libcec-install:
  37. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/lib
  38. $(CP) $(WRKINST)/usr/lib/libcec*.so* \
  39. $(IDIR_LIBCEC)/usr/lib
  40. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/bin
  41. $(INSTALL_BIN) $(WRKINST)/usr/bin/cec-client \
  42. $(IDIR_LIBCEC)/usr/bin
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk