summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2017-03-05 20:11:56 +0100
committerMatthias Schwarzott <zzam@gentoo.org>2017-03-05 20:11:56 +0100
commit8494eb217fe33ebe476394d9c034e0d1c7f30922 (patch)
tree4c34484dfc407d82afaab845060ee7d8f793a6a5 /media-plugins/vdr-markad
parentnet-misc/streamlink: replace MIT license -> Apache-2.0, bug #601378 (diff)
downloadgentoo-8494eb217fe33ebe476394d9c034e0d1c7f30922.tar.gz
gentoo-8494eb217fe33ebe476394d9c034e0d1c7f30922.tar.bz2
gentoo-8494eb217fe33ebe476394d9c034e0d1c7f30922.zip
media-plugins/vdr-markad: Remove required ffmpeg flag x264, as only decoding is needed. Add ~arm keyword.
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'media-plugins/vdr-markad')
-rw-r--r--media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild66
1 files changed, 66 insertions, 0 deletions
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
new file mode 100644
index 000000000000..863359cf4678
--- /dev/null
+++ b/media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+VERSION="1041" # every bump, new version
+
+DESCRIPTION="VDR Plugin: marks advertisements in VDR recordings"
+HOMEPAGE="http://projects.vdr-developer.org/projects/plg-markad/"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+KEYWORDS="~amd64 ~arm ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.6
+ virtual/ffmpeg[mp3]
+ !media-video/noad"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${VDRPLUGIN}-${PV}/plugin"
+S2="${WORKDIR}/${VDRPLUGIN}-${PV}/command"
+
+# vdr-plugin-2.eclass changes
+PO_SUBDIR="../command"
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ cd "${S2}"
+ epatch "${FILESDIR}/${PN}-0.1.4-libav9.patch"
+ sed -i Makefile \
+ -e "s:\$(CXXFLAGS) \$(OBJS):\$(CXXFLAGS) \$(LDFLAGS) \$(OBJS):" \
+ -e "s:\@\$(STRIP) \$(DESTDIR)/usr/bin/markad::"
+
+ if has_version ">=media-video/vdr-1.7.15"; then
+ sed -e "s:2001:6419:" -i markad-standalone.cpp
+ fi
+
+ epatch "${FILESDIR}/${P}_ffmpeg-2.patch"
+
+ # compile fix, tested libav11, ffmpeg-2.5.2
+ sed -e "s:CODEC_ID_:AV_CODEC_ID_:"\
+ -e "s:avcodec_alloc_frame:av_frame_alloc:"\
+ -i "${S2}"/decoder.cpp
+}
+
+src_compile() {
+ vdr-plugin-2_src_compile
+
+ cd "${S2}"
+ emake markad || die "Compiling command-line markad binary failed"
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ cd "${S2}"
+ emake install DESTDIR="${D}" || die "emake install failed"
+
+ cd "${WORKDIR}/${VDRPLUGIN}-${PV}"
+ dodoc README HISTORY
+}