blob: da741441c5d4d09fb2103f27fbd384950bb1e033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2016 Gentoo Foundation
# 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
virtual/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
}
|