Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= bcm2835-vc
  5. # actually f65a4eef05ee436976f9be219d3db841d3d6b8ec from 05.10.2013
  6. PKG_VERSION:= 0.3
  7. PKG_RELEASE:= 2
  8. PKG_MD5SUM:= 027d42d1ba803fabdc6bc4ec78d52e67
  9. PKG_DESCR:= vc tools for raspberry pi (bcm2835)
  10. PKG_SECTION:= base
  11. PKG_DEPENDS:= libpthread
  12. PKG_BUILDDEP:= cmake-host
  13. PKG_SITES:= http://openadk.org/distfiles/
  14. PKG_SYSTEM_DEPENDS:= raspberry-pi
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,BCM2835_VC,bcm2835-vc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. do-configure:
  19. (cd $(WRKBUILD) && PATH='${TARGET_PATH}' cmake -DCMAKE_SYSTEM_NAME=Linux .)
  20. bcm2835-vc-install:
  21. $(INSTALL_DIR) ${IDIR_BCM2835_VC}/opt/vc/{bin,lib}
  22. $(CP) ${WRKINST}/opt/vc/lib/* ${IDIR_BCM2835_VC}/opt/vc/lib
  23. $(CP) ${WRKINST}/opt/vc/bin/* ${IDIR_BCM2835_VC}/opt/vc/bin
  24. # required for xbmc
  25. (cd ${IDIR_BCM2835_VC}/opt/vc/lib && ln -sf libEGL.so libEGL.so.1)
  26. -rm -rf ${STAGING_DIR}/opt/vc
  27. mkdir -p ${STAGING_DIR}/opt/vc
  28. ${CP} ${WRKINST}/opt/vc/lib ${STAGING_DIR}/opt/vc
  29. ${CP} ${WRKINST}/opt/vc/include ${STAGING_DIR}/opt/vc
  30. include ${TOPDIR}/mk/pkg-bottom.mk