raspberrypi-omxplayer-9999.ebuild 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils git-r3 toolchain-funcs flag-o-matic
  5. DESCRIPTION="Command line media player for the Raspberry Pi"
  6. HOMEPAGE="https://github.com/popcornmix/omxplayer"
  7. EGIT_REPO_URI="https://github.com/popcornmix/omxplayer.git"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS=""
  11. IUSE="X"
  12. RDEPEND="dev-libs/libpcre
  13. media-fonts/freefont
  14. || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin )
  15. sys-apps/dbus
  16. sys-apps/fbset
  17. virtual/ffmpeg
  18. dev-libs/boost
  19. media-libs/freetype:2
  20. X? (
  21. x11-apps/xrefresh
  22. x11-apps/xset
  23. )"
  24. DEPEND="${RDEPEND}
  25. virtual/pkgconfig"
  26. src_prepare() {
  27. epatch "${FILESDIR}"/Makefile-0_p20160217.patch \
  28. "${FILESDIR}"/fonts-path.patch
  29. cat > Makefile.include << EOF
  30. LIBS=-lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread
  31. EOF
  32. tc-export CXX
  33. }
  34. src_compile() {
  35. emake omxplayer.bin
  36. }
  37. src_install() {
  38. dobin omxplayer omxplayer.bin
  39. dodoc README.md
  40. }