Makefile 1.5 KB

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