summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-04-26 12:58:49 +0200
committerDavid Seifert <soap@gentoo.org>2020-04-26 12:58:49 +0200
commit7178e4a086c67cf45c527dc18287be2ea8b3886a (patch)
tree511d3d1b5695682bcd04158b5beaae23d283ec8a /media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild
parentmedia-video/noad: Replace virtual/ffmpeg (diff)
downloadgentoo-7178e4a086c67cf45c527dc18287be2ea8b3886a.tar.gz
gentoo-7178e4a086c67cf45c527dc18287be2ea8b3886a.tar.bz2
gentoo-7178e4a086c67cf45c527dc18287be2ea8b3886a.zip
media-video/raspberrypi-omxplayer: Replace virtual/ffmpeg
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild')
-rw-r--r--media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild
new file mode 100644
index 000000000000..a5a79ed5c0b2
--- /dev/null
+++ b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs flag-o-matic
+
+GIT_COMMIT="791d7df"
+DESCRIPTION="Command line media player for the Raspberry Pi"
+HOMEPAGE="https://github.com/popcornmix/omxplayer"
+SRC_URI="https://github.com/popcornmix/omxplayer/tarball/${GIT_COMMIT} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~arm"
+IUSE="X"
+
+RDEPEND="dev-libs/libpcre
+ media-fonts/freefont
+ || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin )
+ sys-apps/dbus
+ sys-apps/fbset
+ media-video/ffmpeg
+ dev-libs/boost
+ media-libs/freetype:2
+ X? (
+ x11-apps/xrefresh
+ x11-apps/xset
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/popcornmix-omxplayer-${GIT_COMMIT}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/Makefile-0_p20160528.patch \
+ "${FILESDIR}"/fonts-path.patch
+
+ cat > Makefile.include << EOF
+LIBS=-lvchostif -lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread
+EOF
+
+ tc-export CXX
+}
+
+src_compile() {
+ emake omxplayer.bin
+}
+
+src_install() {
+ dobin omxplayer omxplayer.bin
+ dodoc README.md
+}