Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= 2.1.4
  6. PKG_RELEASE:= 5
  7. PKG_MD5SUM:= faa58944f87e9beda165f615d4b46766
  8. PKG_DESCR:= control your device with your tv remote control
  9. PKG_SECTION:= libs/video
  10. PKG_DEPENDS:= libudev
  11. PKG_BUILDDEP:= eudev
  12. PKG_URL:= http://libcec.pulse-eight.com/
  13. PKG_SITES:= http://packages.pulse-eight.net/pulse/sources/libcec/
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc
  17. PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc
  18. PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40
  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. AUTOTOOL_STYLE:= autoreconf
  22. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  23. CONFIGURE_ARGS+= --enable-rpi \
  24. --with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/include \
  25. --with-rpi-lib-path=$(STAGING_TARGET_DIR)/opt/vc/lib
  26. endif
  27. libcec-install:
  28. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/lib
  29. $(CP) $(WRKINST)/usr/lib/libcec*.so* \
  30. $(IDIR_LIBCEC)/usr/lib
  31. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/bin
  32. $(INSTALL_BIN) $(WRKINST)/usr/bin/cec-client \
  33. $(IDIR_LIBCEC)/usr/bin
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk