media-plugins/vdr-markad: new package, add 4.2.15

vdr plugin for advertisement detection in video recordings
markad is a replacement for media-video/noad

Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/43957
Closes: https://github.com/gentoo/gentoo/pull/43957
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Martin Dummer
2025-09-27 11:42:48 +02:00
committed by Sam James
parent fea3b647b4
commit e0ca39e39a
5 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST vdr-markad-4.2.15.tar.gz 331865 BLAKE2B d5dd6dbdf9ca79e21e50e157cbbb5e587c3c6602b2f69752e291b9fea5773a5343bca6bc88164e1f0fc13a5af7689715b2ce7625757535a1c239c2885844cf8c SHA512 48c73c6d3cdf0dd9e12040e7b880035e9b64b698b923e6ed226c5b65add08c1cce561535e81769647b3b8b8f0124197feb28f8bd1ad7fec531ec02353c5bca2c

View File

@@ -0,0 +1,35 @@
# /etc/conf.d/vdr.markad
# Configuration:
# A few settings are given on the command line rather than in the setup menu.
# Available options:
#
# -b DIR, --bindir=DIR use DIR as location for markad executable
# (default: /usr/bin)
# -l DIR --logocachedir=DIR use DIR as location for markad logos
# (default: /var/lib/markad)
#
# --loglevel=<level> sets log level of started markad process (standalone, not the plugin) to the specified value
# <level>: 1=error 2=info 3=debug 4=trace
#
# --astopoffs=SECONDS assume stop of the recording SECONDS after the end of the EPG time.
# default is 0 s
# If end marks are to early, try to add some seconds
#
# --cut cut video based on marks and write it in the recording directory
# there are no splits of the target file, make sure your filesystem can handle big files
#
# --ac3reencode re-encode AC3 stream to fix low audio level of cutted video on same devices
# requires --cut
#
# --autologo=<option> 0 = disable, only use logos from logo cache directory
# 1 = deprecated, do not use
# 2 = enable (default)
# if there is no suitable logo in the logo cache directory markad will
# try to find the logo from recording and store it in the recording directory
# If this option is set you can not configure this feature from the VDR menu
#
#
#
#_EXTRAOPTS="--loglevel=3 --cut"

View File

@@ -0,0 +1,13 @@
# do not install compressed manpage
#
--- vdr-plugin-markad-4.2.15.orig/command/Makefile 2025-07-31 17:48:24.000000000 +0200
+++ vdr-plugin-markad-4.2.15/command/Makefile 2025-09-27 10:07:24.720617866 +0200
@@ -173,7 +173,7 @@
install-doc:
@mkdir -p $(DESTDIR)$(MANDIR)/man1
- @gzip -c markad.1 > $(DESTDIR)$(MANDIR)/man1/markad.1.gz
+ install -D markad.1 $(DESTDIR)$(MANDIR)/man1
install: install-doc markad $(I18Nmsgs)
@mkdir -p $(DESTDIR)$(BINDIR)

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>martin.dummer@gmx.net</email>
<name>Martin Dummer</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<maintainer type="project">
<email>vdr@gentoo.org</email>
<name>Gentoo VDR Project</name>
</maintainer>
<upstream>
<remote-id type="github">kfb77/vdr-plugin-markad</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit vdr-plugin-2
DESCRIPTION="VDR Plugin: mark advertising in VDR recordings"
HOMEPAGE="https://github.com/kfb77/vdr-plugin-markad/"
SRC_URI="https://github.com/kfb77/vdr-plugin-markad/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/vdr-plugin-markad-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
DEPEND="media-video/vdr:=
media-video/ffmpeg[lame]
!media-video/noad"
RDEPEND="${DEPEND}"
src_prepare() {
default
eapply "${FILESDIR}/vdr-markad-Makefile.patch"
S="${WORKDIR}/vdr-plugin-markad-${PV}/plugin"
vdr-plugin-2_src_prepare
cp ../version.dist ../version.h || die
}
src_compile() {
S="${WORKDIR}/vdr-plugin-markad-${PV}/"
vdr-plugin-2_src_compile
}
src_install() {
S="${WORKDIR}/vdr-plugin-markad-${PV}/plugin"
vdr-plugin-2_src_install
cd "${S}/.."
emake install DESTDIR="${D}" || die "emake install failed"
cd "${WORKDIR}/${VDRPLUGIN}-${PV}"
dodoc README HISTORY
}