Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= 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:= autotool 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. PKG_LIBC_DEPENDS:= glibc musl
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,LIBCEC,libcec,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. AUTOTOOL_STYLE:= autoreconf
  23. ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
  24. CONFIGURE_ARGS+= --enable-rpi \
  25. --with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/include \
  26. --with-rpi-lib-path=$(STAGING_TARGET_DIR)/opt/vc/lib
  27. endif
  28. libcec-install:
  29. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/lib
  30. $(CP) $(WRKINST)/usr/lib/libcec*.so* \
  31. $(IDIR_LIBCEC)/usr/lib
  32. $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/bin
  33. $(INSTALL_BIN) $(WRKINST)/usr/bin/cec-client \
  34. $(IDIR_LIBCEC)/usr/bin
  35. include ${TOPDIR}/mk/pkg-bottom.mk