Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 d1a4a0e1030249e40e2e9bb04518f1b786b18488 from 7.01.2014
  6. PKG_VERSION:= 0.3
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= 1882cac6032baa59291068af30df1702
  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 libgcc 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 $(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_DIR)/usr/include/boost-1_55 \
  23. -I$(STAGING_DIR)/usr/include/freetype2 \
  24. -I$(STAGING_DIR)/usr/include/dbus-1.0 \
  25. -I$(STAGING_DIR)/opt/vc/include \
  26. -I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
  27. -I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
  28. TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib
  29. omxplayer-install:
  30. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/bin
  31. $(INSTALL_BIN) $(WRKSRC)/omxplayer.bin \
  32. $(IDIR_OMXPLAYER)/usr/bin/omxplayer
  33. $(INSTALL_DIR) $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  34. $(INSTALL_DATA) $(WRKSRC)/fonts/* \
  35. $(IDIR_OMXPLAYER)/usr/share/fonts/truetype/freefont/
  36. include ${TOPDIR}/mk/pkg-bottom.mk