You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.8 KiB
80 lines
1.8 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
|
|
||
|
inherit autotools toolchain-funcs
|
||
10 years ago
|
|
||
|
DESCRIPTION="Mark commercial breaks in VDR recordings"
|
||
5 years ago
|
HOMEPAGE="https://github.com/madmartin/noad"
|
||
|
SRC_URI="https://github.com/madmartin/noad/archive/v0.8.6.tar.gz -> ${P}.tar.gz
|
||
|
http://vdr.websitec.de/download/${PN}/${P}-ffmpeg3.4.diff.bz2"
|
||
10 years ago
|
|
||
5 years ago
|
LICENSE="GPL-2+"
|
||
10 years ago
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
10 years ago
|
IUSE="+ffmpeg imagemagick libmpeg2"
|
||
|
|
||
|
RDEPEND="
|
||
|
libmpeg2? ( media-libs/libmpeg2:= )
|
||
5 years ago
|
ffmpeg? ( media-video/ffmpeg )
|
||
5 years ago
|
imagemagick? ( media-gfx/imagemagick )"
|
||
10 years ago
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
10 years ago
|
REQUIRED_USE="|| ( ffmpeg libmpeg2 )"
|
||
|
|
||
10 years ago
|
src_prepare() {
|
||
5 years ago
|
default
|
||
10 years ago
|
|
||
5 years ago
|
#compile tested libav-13, ffmepg-3.4
|
||
|
eapply "${WORKDIR}/${P}-ffmpeg3.4.diff"
|
||
10 years ago
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(usex imagemagick '--with-magick') \
|
||
|
$(usex ffmpeg '' '--without-ffmpeg') \
|
||
|
$(usex libmpeg2 '' '--without-libmpeg2') \
|
||
|
--with-tools
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake AR="$(tc-getAR)" # see bug #469810
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin noad showindex checkMarks
|
||
|
use imagemagick && dobin markpics
|
||
|
|
||
|
dodoc README INSTALL
|
||
|
# example scripts are installed as dokumentation
|
||
|
dodoc allnewnoad allnoad allnoadnice clearlogos noadcall.sh noadifnew stat2html statupd
|
||
|
|
||
|
newconfd "${FILESDIR}"/confd_vdraddon.noad vdraddon.noad
|
||
|
|
||
|
insinto /usr/share/vdr/record
|
||
|
doins "${FILESDIR}"/record-50-noad.sh
|
||
|
|
||
|
insinto /usr/share/vdr/shutdown
|
||
|
doins "${FILESDIR}"/pre-shutdown-15-noad.sh
|
||
|
|
||
|
insinto /etc/vdr/reccmds
|
||
|
doins "${FILESDIR}"/reccmds.noad.conf
|
||
|
|
||
|
exeinto /usr/share/vdr/bin
|
||
|
doexe "${FILESDIR}"/noad-reccmd
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog
|
||
|
elog "To integrate noad in VDR you should do this:"
|
||
|
elog
|
||
|
elog "start and set Parameter in /etc/conf.d/vdraddon.noad"
|
||
|
elog
|
||
|
elog "Note: You can use here all parameters for noad,"
|
||
|
elog "please look in the documentation of noad."
|
||
|
}
|