Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= libcec
  5. PKG_VERSION:= 2.1.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= d65e52ab3295e9e4b73bf4580f3bd4f7
  8. PKG_DESCR:= control your device with your TV remote control
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://libcec.pulse-eight.com/
  12. PKG_SITES:= http://www.openadk.org/distfiles
  13. PKG_OPTS:= dev
  14. PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc
  15. PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc
  16. PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40
  17. PKG_LIBC_DEPENDS:= glibc musl
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBCEC,libcec,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. AUTOTOOL_STYLE:= autoreconf
  21. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  22. CONFIGURE_ARGS+= --enable-rpi \
  23. --with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/include \
  24. --with-rpi-lib-path=$(STAGING_TARGET_DIR)/opt/vc/lib
  25. endif
  26. libcec-install:
  27. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/lib
  28. $(CP) $(WRKINST)/usr/lib/libcec*.so* \
  29. $(IDIR_LIBCEC)/usr/lib
  30. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/bin
  31. $(INSTALL_BIN) $(WRKINST)/usr/bin/cec-client \
  32. $(IDIR_LIBCEC)/usr/bin
  33. include ${TOPDIR}/mk/pkg-bottom.mk