1 |
commit: 8494eb217fe33ebe476394d9c034e0d1c7f30922 |
2 |
Author: Matthias Schwarzott <zzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 5 19:11:56 2017 +0000 |
4 |
Commit: Matthias Schwarzott <zzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 5 19:11:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8494eb21 |
7 |
|
8 |
media-plugins/vdr-markad: Remove required ffmpeg flag x264, as only decoding is needed. Add ~arm keyword. |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
.../vdr-markad/vdr-markad-0.1.4-r2.ebuild | 66 ++++++++++++++++++++++ |
13 |
1 file changed, 66 insertions(+) |
14 |
|
15 |
diff --git a/media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild b/media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..863359cf467 |
18 |
--- /dev/null |
19 |
+++ b/media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild |
20 |
@@ -0,0 +1,66 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=5 |
25 |
+ |
26 |
+inherit vdr-plugin-2 |
27 |
+ |
28 |
+VERSION="1041" # every bump, new version |
29 |
+ |
30 |
+DESCRIPTION="VDR Plugin: marks advertisements in VDR recordings" |
31 |
+HOMEPAGE="http://projects.vdr-developer.org/projects/plg-markad/" |
32 |
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz" |
33 |
+ |
34 |
+KEYWORDS="~amd64 ~arm ~x86" |
35 |
+SLOT="0" |
36 |
+LICENSE="GPL-2" |
37 |
+IUSE="" |
38 |
+ |
39 |
+DEPEND=">=media-video/vdr-1.6 |
40 |
+ virtual/ffmpeg[mp3] |
41 |
+ !media-video/noad" |
42 |
+RDEPEND="${DEPEND}" |
43 |
+ |
44 |
+S="${WORKDIR}/${VDRPLUGIN}-${PV}/plugin" |
45 |
+S2="${WORKDIR}/${VDRPLUGIN}-${PV}/command" |
46 |
+ |
47 |
+# vdr-plugin-2.eclass changes |
48 |
+PO_SUBDIR="../command" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ vdr-plugin-2_src_prepare |
52 |
+ |
53 |
+ cd "${S2}" |
54 |
+ epatch "${FILESDIR}/${PN}-0.1.4-libav9.patch" |
55 |
+ sed -i Makefile \ |
56 |
+ -e "s:\$(CXXFLAGS) \$(OBJS):\$(CXXFLAGS) \$(LDFLAGS) \$(OBJS):" \ |
57 |
+ -e "s:\@\$(STRIP) \$(DESTDIR)/usr/bin/markad::" |
58 |
+ |
59 |
+ if has_version ">=media-video/vdr-1.7.15"; then |
60 |
+ sed -e "s:2001:6419:" -i markad-standalone.cpp |
61 |
+ fi |
62 |
+ |
63 |
+ epatch "${FILESDIR}/${P}_ffmpeg-2.patch" |
64 |
+ |
65 |
+ # compile fix, tested libav11, ffmpeg-2.5.2 |
66 |
+ sed -e "s:CODEC_ID_:AV_CODEC_ID_:"\ |
67 |
+ -e "s:avcodec_alloc_frame:av_frame_alloc:"\ |
68 |
+ -i "${S2}"/decoder.cpp |
69 |
+} |
70 |
+ |
71 |
+src_compile() { |
72 |
+ vdr-plugin-2_src_compile |
73 |
+ |
74 |
+ cd "${S2}" |
75 |
+ emake markad || die "Compiling command-line markad binary failed" |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ vdr-plugin-2_src_install |
80 |
+ |
81 |
+ cd "${S2}" |
82 |
+ emake install DESTDIR="${D}" || die "emake install failed" |
83 |
+ |
84 |
+ cd "${WORKDIR}/${VDRPLUGIN}-${PV}" |
85 |
+ dodoc README HISTORY |
86 |
+} |