Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= omxplayer
  5. PKG_VERSION:= c5ab80828159c64a283ff69d40748923648f8a0a
  6. PKG_RELEASE:= 1
  7. PKG_GIT:= hash
  8. PKG_DESCR:= video player for raspberry pi
  9. PKG_SECTION:= mm/video
  10. PKG_DEPENDS:= libffmpeg bcm28xx-vc-libs bcm28xx-vc-gl-libs
  11. PKG_DEPENDS+= zlib libdbus boost libfreetype libpcre
  12. PKG_BUILDDEP:= ffmpeg boost bcm28xx-vc freetype pcre dbus
  13. PKG_NEEDS:= threads rt c++
  14. PKG_URL:= https://github.com/popcornmix/omxplayer
  15. PKG_SITES:= https://github.com/popcornmix/omxplayer.git
  16. PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,OMXPLAYER,omxplayer,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIG_STYLE:= manual
  20. INSTALL_STYLE:= manual
  21. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/freetype2 \
  22. -I$(STAGING_TARGET_DIR)/usr/include/dbus-1.0 \
  23. -I$(STAGING_TARGET_DIR)/opt/vc/include \
  24. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
  25. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
  26. TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
  27. omxplayer-install:
  28. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
  29. $(INSTALL_BIN) $(WRKSRC)/omxplayer.bin \
  30. $(IDIR_OMXPLAYER)/usr/bin/omxplayer
  31. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  32. $(INSTALL_DATA) $(WRKSRC)/fonts/* \
  33. $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk