1
0

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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= libcec
  5. PKG_VERSION:= 2.1.4
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= faa58944f87e9beda165f615d4b46766
  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://packages.pulse-eight.net/pulse/sources/libcec/
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_DEPENDS_RASPBERRY_PI:= bcm2835-vc
  16. PKG_BUILDDEP_RASPBERRY_PI:= bcm2835-vc
  17. PKG_SYSTEM_DEPENDS:= raspberry-pi ibm-x40
  18. PKG_LIBC_DEPENDS:= glibc musl
  19. include $(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 ${TOPDIR}/mk/pkg-bottom.mk