/
omxplayer-9999.ebuild
53 lines (46 loc) · 1.39 KB
/
omxplayer-9999.ebuild
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils flag-o-matic git-2 toolchain-funcs
DESCRIPTION="command line media player for the Raspberry Pi"
HOMEPAGE="https://github.com/huceke/omxplayer"
EGIT_REPO_URI="https://github.com/huceke/omxplayer.git"
EGIT_COMMIT="52373003d750a8d979e5d2c716b8abb05aaa1a23" #verified to work, may work on newer
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
dev-libs/libpcre
media-libs/raspberrypi-videocore-bin
media-libs/freetype
media-video/omxplayer-ffmpeg
sys-apps/fbset
>=dev-libs/boost-1.50.0
>=sys-libs/glibc-2.16.0
>=sys-devel/gcc-4.6.0
"
DEPEND="${RDEPEND}
"
src_prepare() {
einfo "If your emerge fails with an error complaining that"
einfo "'OMX_CONFIG_BRCMAUDIODOWNMIXCOEFFICIENTS' was not"
einfo "declared in this scope, then you need to update"
einfo "your firmware on the Raspberry Pi before continuing."
einfo ""
einfo "See https://github.com/Hexxeh/rpi-update/ for"
einfo "more information."
einfo ""
epatch "${FILESDIR}"/${P}-Makefile.patch
tc-export CXX
filter-ldflags -Wl,--as-needed
}
src_compile()
{
make || die "Could not compile omx player"
make dist || die "Could not create dist"
}
src_install() {
cp -r omxplayer-dist/* ${D}
}