summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-markad
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-markad
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-markad')
-rw-r--r--media-plugins/vdr-markad/Manifest9
-rw-r--r--media-plugins/vdr-markad/files/vdr-markad-0.1.4-libav9.patch40
-rw-r--r--media-plugins/vdr-markad/files/vdr-markad-0.1.4_ffmpeg-2.patch13
-rw-r--r--media-plugins/vdr-markad/metadata.xml8
-rw-r--r--media-plugins/vdr-markad/vdr-markad-0.1.4-r1.ebuild66
-rw-r--r--media-plugins/vdr-markad/vdr-markad-0.1.4-r2.ebuild66
-rw-r--r--media-plugins/vdr-markad/vdr-markad-0.1.4.ebuild61
7 files changed, 263 insertions, 0 deletions
diff --git a/media-plugins/vdr-markad/Manifest b/media-plugins/vdr-markad/Manifest
new file mode 100644
index 000000000000..74e8af07f75a
--- /dev/null
+++ b/media-plugins/vdr-markad/Manifest
@@ -0,0 +1,9 @@
+AUX vdr-markad-0.1.4-libav9.patch 1300 SHA256 e160f0ccbd1c7c5f3325cabc30d52d17486b7eb2234879ec3f1c4c74949269b3 SHA512 3e0bc603840cd07f4499c3b7db2f44e7e069363ac43936647d52faff504a715449db4d3691b80cd818b5f1b7b83ef0de1229b515316d85adff191738ef6fb4f5 WHIRLPOOL ecc823940a3b7e5ce77a5a5cdd4d09fc6b9d6b46065db9b1add6eb64b39d32bc26e93cbbfc5f8cc3e859ca44c0833acc6cb0df655fb070af612a7057e45a0fb8
+AUX vdr-markad-0.1.4_ffmpeg-2.patch 400 SHA256 7debbaf580976b51c53a7f5d0d63b94961d92d075926e5359018cb1ec5a41960 SHA512 8d6619cc84c797371991fa7f3848724ab9f085c02892bf2b754f51e88d1f4eb2a68cb0a1da269bdb1d5cd130686e79d1b850a9fdb13622a33817decc5c2f28e9 WHIRLPOOL cad80741fca84eec32700b916a739cbc01dd754990a5bed6805c91d88854e82be545dc88ad1e445ca49f67246c983f1253c881dd4b982980f1b43087e73fab5e
+DIST vdr-markad-0.1.4.tgz 118728 SHA256 f940765c5dd4a5d66e1ff2650fa0a2b7bda7138953782431230a6c7539334a85 SHA512 10121e72803f489cdcabb46c989ecf4ae2ced1893bbdaccefbeef412ca34b124952ddf4639b3f78da3413e7b784ead4a60034a70cbab43a7c27e0e41f9653ae1 WHIRLPOOL 9e926e44798c5449346b078cfb906341a15715be49bff52bbad7594c299edff5f2454f1f2de9f5f3dc05a85968a860baa3d7796e220461da2663ca897db87414
+EBUILD vdr-markad-0.1.4-r1.ebuild 1504 SHA256 c5f8c348c56e6c1473c86890be003e931e9a425954abae28f7294af434bfb50d SHA512 e902641ee841583729f49e108c58b981b638c3af84e651881658d113fa4a7a2e63519c51bc8c161597f52226c59318206d0210b800597f6da7ddbac039b84adf WHIRLPOOL 2363199c8a5be71076be61784d6f90c702368f31327e8c9b3e0b68f2f49af16b50e458d631737289f369b1cda25fb4b7e66118501f42f36dd04638f6ac27b080
+EBUILD vdr-markad-0.1.4-r2.ebuild 1506 SHA256 d056d6b89aa450130094d4e396e7464fc0a1c2828a3849a65f80fb79933311cc SHA512 7cc403bbb7e2d62690ec6c1aac1923afa13fad2610b0f9f3ffdb69888bce809b9be2d8619f8b14178fa6f55e0f6ea65d445192b06c6992a510408224904f05ce WHIRLPOOL 682cdf5d42e243a0b9dcada44ce3b1ab98c55d8c0c3ed76371f122d985073cc8a01cea6ede010377ab1138fb2d3652f808fed83e8c0382627c40dbcdb565313f
+EBUILD vdr-markad-0.1.4.ebuild 1350 SHA256 77f1d5f28190c687aa45d33659ece5f51058425aa8981b9579558ef2f4e42f32 SHA512 c925004dee0afa269a8730c56cdb1cdd771253eb2063fad1fc8855ef81a1cd27b68eb7b46b333ee6e893e1a64e18b17fcddc866e7157efb9dd5915c82fe21274 WHIRLPOOL 9c9822774f7607d3c2fb8ecaf3feb9e784ddbd7fe0c3e70ad77516665e6adc90f3dd5f92f9e9e39ab39f04745a7d988e5803bb66251aa009207d7f71c86ec81e
+MISC ChangeLog 2980 SHA256 9d2afbf8988b1b547b79a522778209061eae7f467ac509d5aa1f0788e96f0001 SHA512 f881a6b55b023fb5c25fe8796eed5f36adc4e57377c691c0b4a3801cdf3ef1465e07d5d780d8f70ba74c76e90247a94aa773e053e166b58c8705d8d8f0caead9 WHIRLPOOL ecc81254c5e13acd4c81dbc00846dcb2a39b173feb4fdee71839693791c4956dbaa530a51ae6ac9ada98f5b466612b5145e35824a6175364708093c9863e3b1c
+MISC ChangeLog-2015 3112 SHA256 a54f8bd86bbe60f9f0a51fda6cbfb967e05abc7c120d9b5166fa6c26931af6cb SHA512 437dbabdd11fc7d894b37a2b8c792bbef7f7900984f9c25d431e32fbec3fd5c74938a2b6689fec0c1bed6b0a93b0e250ae19ef7d65aed509a0691f037e773504 WHIRLPOOL f4ab67d5a94d02659d486c0e2b1de42337a099de0109fbd8f57189fd426cc5b66a1cb6754016dadf1e6464171dc0fea6c6f607ffc6be07254eeab3027f77b566
+MISC metadata.xml 243 SHA256 161359b6e9eddec137a431eea66785e070bbc25fab3ae1b57f900e411fc37fe7 SHA512 f7d6e467a5a96c0afdd42df3c0f3866240defc5bbea5ccddf4c0b1a3c004225af5d46dab67d45a5ac34535391584f3b3727fe79ef6cef1a11413636bbc35cf06 WHIRLPOOL ebf59815181c251040396bb44206b875f6d996abcff030fdbf8355b47d6ea8c4f2669847ea1af194112de469258d7ca09ed77b682924ca495958a65f957dbf39
diff --git a/media-plugins/vdr-markad/files/vdr-markad-0.1.4-libav9.patch b/media-plugins/vdr-markad/files/vdr-markad-0.1.4-libav9.patch
new file mode 100644
index 000000000000..f11fc6137000
--- /dev/null
+++ b/media-plugins/vdr-markad/files/vdr-markad-0.1.4-libav9.patch
@@ -0,0 +1,40 @@
+diff -urN markad-0.1.4.old/command/decoder.cpp markad-0.1.4/command/decoder.cpp
+--- markad-0.1.4.old/command/decoder.cpp 2013-06-17 21:52:44.333367552 +0200
++++ markad-0.1.4/command/decoder.cpp 2013-06-17 21:53:03.708366863 +0200
+@@ -11,6 +11,7 @@
+ #include <sys/types.h>
+ #include <string.h>
+ #include <cstdlib>
++#include <cstdio>
+
+ #include "decoder.h"
+
+@@ -172,7 +173,7 @@
+
+ if (video_codec)
+ {
+- video_context = avcodec_alloc_context();
++ video_context = avcodec_alloc_context3(NULL);
+ if (video_context)
+ {
+ if (video_codec->capabilities & CODEC_CAP_TRUNCATED)
+@@ -321,7 +322,7 @@
+ {
+ avcodec_flush_buffers(video_context);
+ AVCodecContext *dest;
+- dest=avcodec_alloc_context();
++ dest=avcodec_alloc_context3(NULL);
+ if (dest)
+ {
+ if (avcodec_copy_context(dest,video_context)!=0) ret=false;
+diff -urN markad-0.1.4.old/command/decoder.h markad-0.1.4/command/decoder.h
+--- markad-0.1.4.old/command/decoder.h 2013-06-17 21:52:44.333367552 +0200
++++ markad-0.1.4/command/decoder.h 2013-06-17 21:53:03.708366863 +0200
+@@ -18,6 +18,7 @@
+ #include <avcodec.h>
+ #else
+ #include <libavcodec/avcodec.h>
++#include <libavutil/mem.h>
+ #endif
+
+ #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
diff --git a/media-plugins/vdr-markad/files/vdr-markad-0.1.4_ffmpeg-2.patch b/media-plugins/vdr-markad/files/vdr-markad-0.1.4_ffmpeg-2.patch
new file mode 100644
index 000000000000..c94d54ea7aef
--- /dev/null
+++ b/media-plugins/vdr-markad/files/vdr-markad-0.1.4_ffmpeg-2.patch
@@ -0,0 +1,13 @@
+diff -Naur markad-0.1.4.orig/command/decoder.cpp markad-0.1.4/command/decoder.cpp
+--- markad-0.1.4.orig/command/decoder.cpp 2014-01-29 20:16:23.000000000 +0100
++++ markad-0.1.4/command/decoder.cpp 2014-01-29 20:17:49.000000000 +0100
+@@ -152,7 +152,8 @@
+ }
+
+ video_codec=NULL;
+- CodecID video_codecid;
++// CodecID video_codecid;
++ AVCodecID video_codecid;
+
+ if (useH264)
+ {
diff --git a/media-plugins/vdr-markad/metadata.xml b/media-plugins/vdr-markad/metadata.xml
new file mode 100644
index 000000000000..27f419c289c3
--- /dev/null
+++ b/media-plugins/vdr-markad/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-plugins/vdr-markad/vdr-markad-0.1.4-r1.ebuild b/media-plugins/vdr-markad/vdr-markad-0.1.4-r1.ebuild
new file mode 100644
index 000000000000..fe03db194234
--- /dev/null
+++ b/media-plugins/vdr-markad/vdr-markad-0.1.4-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 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 x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.6
+ virtual/ffmpeg[mp3,x264]
+ !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
+}
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
+}
diff --git a/media-plugins/vdr-markad/vdr-markad-0.1.4.ebuild b/media-plugins/vdr-markad/vdr-markad-0.1.4.ebuild
new file mode 100644
index 000000000000..c093a955b1da
--- /dev/null
+++ b/media-plugins/vdr-markad/vdr-markad-0.1.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 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 x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.6
+ virtual/ffmpeg[mp3,x264]
+ !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"
+}
+
+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
+}