Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. # actually git from 25.09.2014
  6. PKG_VERSION:= 0.6
  7. PKG_RELEASE:= 1
  8. PKG_HASH:= 6b22523bbb949ef6b7905f9fe12da7757cdcae0d4970ff752a3cdb3d7340e66d
  9. PKG_DESCR:= video player for raspberry pi
  10. PKG_SECTION:= mm/video
  11. PKG_DEPENDS:= libffmpeg boost bcm2835-vc libfreetype libpcre
  12. PKG_DEPENDS+= librt zlib libpthread libstdcxx libdbus
  13. PKG_BUILDDEP:= ffmpeg boost bcm2835-vc freetype pcre dbus
  14. PKG_URL:= https://github.com/popcornmix/omxplayer
  15. PKG_SITES:= http://openadk.org/distfiles/
  16. PKG_SYSTEM_DEPENDS:= raspberry-pi
  17. PKG_LIBC_DEPENDS:= glibc musl
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,OMXPLAYER,omxplayer,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/freetype2 \
  23. -I$(STAGING_TARGET_DIR)/usr/include/dbus-1.0 \
  24. -I$(STAGING_TARGET_DIR)/opt/vc/include \
  25. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
  26. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
  27. TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
  28. omxplayer-install:
  29. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
  30. $(INSTALL_BIN) $(WRKSRC)/omxplayer.bin \
  31. $(IDIR_OMXPLAYER)/usr/bin/omxplayer
  32. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  33. $(INSTALL_DATA) $(WRKSRC)/fonts/* \
  34. $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk