Makefile 1.4 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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= omxplayer
  5. PKG_VERSION:= 0.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= bb0bcdf1de3aec56d3e0746b91915d90
  8. PKG_DESCR:= video player for raspberry pi
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= libffmpeg boost bcm2835-vc libfreetype libpcre
  11. PKG_DEPENDS+= librt zlib libpthread libstdcxx libgcc
  12. PKG_BUILDDEP:= ffmpeg boost bcm2835-vc freetype pcre
  13. PKG_URL:= https://github.com/popcornmix/omxplayer
  14. PKG_SITES:= http://openadk.org/distfiles/
  15. PKG_SYSTEM_DEPENDS:= raspberry-pi
  16. include $(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_DIR)/usr/include/boost-1_54 \
  21. -I$(STAGING_DIR)/usr/include/freetype2 \
  22. -I$(STAGING_DIR)/opt/vc/include \
  23. -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
  24. -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
  25. TARGET_LDFLAGS+= -L$(STAGING_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
  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 ${TOPDIR}/mk/pkg-bottom.mk