Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= omxplayer
  5. # actually 46616c55c2fad3dac47d17e8a6b41a16a4d6f15e from 13.04.2014
  6. PKG_VERSION:= 0.5
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= 1c882539dfcbc4e8efeae85ff8069cbe
  9. PKG_DESCR:= video player for raspberry pi
  10. PKG_SECTION:= multimedia
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  17. PKG_SYSTEM_DEPENDS:= raspberry-pi
  18. PKG_LIBC_DEPENDS:= glibc musl
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,OMXPLAYER,omxplayer,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. CONFIG_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/boost-1_55 \
  24. -I$(STAGING_TARGET_DIR)/usr/include/freetype2 \
  25. -I$(STAGING_TARGET_DIR)/usr/include/dbus-1.0 \
  26. -I$(STAGING_TARGET_DIR)/opt/vc/include \
  27. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vcos/pthreads \
  28. -I$(STAGING_TARGET_DIR)/opt/vc/include/interface/vmcs_host/linux
  29. TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/opt/vc/lib
  30. omxplayer-install:
  31. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
  32. $(INSTALL_BIN) $(WRKSRC)/omxplayer.bin \
  33. $(IDIR_OMXPLAYER)/usr/bin/omxplayer
  34. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  35. $(INSTALL_DATA) $(WRKSRC)/fonts/* \
  36. $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  37. include ${TOPDIR}/mk/pkg-bottom.mk