Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:= bcm2835-vc
  5. PKG_VERSION:= 3b81b91c18ff19f97033e146a9f3262ca631f0e9
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= videocore tools and libraries for bcm28xx
  8. PKG_SECTION:= libs/video
  9. PKG_DEPENDS:= libpthread
  10. PKG_BUILDDEP:= cmake-host
  11. PKG_URL:= https://github.com/raspberrypi/userland
  12. PKG_SITES:= https://github.com/raspberrypi/userland.git
  13. PKG_SUBPKGS:= BCM2835_VC_TOOLS BCM2835_VC_LIBS BCM2835_VC_GL_LIBS
  14. PKGSS_BCM2835_VC_TOOLS:=bcm2835-vc-libs
  15. PKGSC_BCM2835_VC_TOOLS:=sys/hw
  16. PKGSD_BCM2835_VC_TOOLS:=videocore tool vcgencmd
  17. PKGSC_BCM2835_VC_LIBS:= libs/misc
  18. PKGSC_BCM2835_VC_GL_LIBS:=libs/video
  19. PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2
  20. include $(ADK_TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,BCM2835_VC_TOOLS,bcm2835-vc-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_BCM2835_VC_TOOLS),$(PKG_DESCR),$(PKGSC_BCM2835_VC_TOOLS)))
  22. $(eval $(call PKG_template,BCM2835_VC_LIBS,bcm2835-vc-libs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  23. $(eval $(call PKG_template,BCM2835_VC_GL_LIBS,bcm2835-vc-gl-libs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  24. CONFIG_STYLE:= cmake
  25. bcm2835-vc-tools-install:
  26. $(INSTALL_DIR) $(IDIR_BCM2835_VC_TOOLS)/opt/vc/bin
  27. $(INSTALL_BIN) $(WRKINST)/opt/vc/bin/vcgencmd \
  28. $(IDIR_BCM2835_VC_TOOLS)/opt/vc/bin
  29. bcm2835-vc-libs-install:
  30. $(INSTALL_DIR) $(IDIR_BCM2835_VC_LIBS)/opt/vc/lib
  31. $(CP) $(WRKINST)/opt/vc/lib/libvcos.so \
  32. $(IDIR_BCM2835_VC_LIBS)/opt/vc/lib
  33. $(CP) $(WRKINST)/opt/vc/lib/libvchiq_arm.so \
  34. $(IDIR_BCM2835_VC_LIBS)/opt/vc/lib
  35. -rm -rf $(STAGING_TARGET_DIR)/opt/vc
  36. mkdir -p $(STAGING_TARGET_DIR)/opt/vc
  37. $(CP) $(WRKINST)/opt/vc/lib $(STAGING_TARGET_DIR)/opt/vc
  38. $(CP) $(WRKINST)/opt/vc/include $(STAGING_TARGET_DIR)/opt/vc
  39. bcm2835-vc-gl-libs-install:
  40. $(INSTALL_DIR) $(IDIR_BCM2835_VC_GL_LIBS)/opt/vc/lib
  41. $(CP) $(WRKINST)/opt/vc/lib/libEGL.so \
  42. $(IDIR_BCM2835_VC_GL_LIBS)/opt/vc/lib
  43. $(CP) $(WRKINST)/opt/vc/lib/libGLESv2.so \
  44. $(IDIR_BCM2835_VC_GL_LIBS)/opt/vc/lib
  45. $(CP) $(WRKINST)/opt/vc/lib/libOpenVG.so \
  46. $(IDIR_BCM2835_VC_GL_LIBS)/opt/vc/lib
  47. (cd $(IDIR_BCM2835_VC_GL_LIBS)/opt/vc/lib && ln -sf libEGL.so libEGL.so.1)
  48. include $(ADK_TOPDIR)/mk/pkg-bottom.mk