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.
44 lines
916 B
44 lines
916 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils
|
|
|
|
VERSION="717" # every bump, new version
|
|
|
|
RESTRICT="strip"
|
|
|
|
DESCRIPTION="Addon needed for XXV - WWW Admin for the Video Disk Recorder"
|
|
HOMEPAGE="https://projects.vdr-developer.org/projects/xxv"
|
|
SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
|
|
mirror://gentoo/${P}.tgz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="media-video/ffmpeg"
|
|
DEPEND="${RDEPEND}
|
|
virtual/pkgconfig"
|
|
|
|
src_prepare() {
|
|
sed -i \
|
|
-e "s:usr/local:usr:" \
|
|
-e "s:-o vdr2jpeg:\$(LDFLAGS) -o vdr2jpeg:" \
|
|
Makefile || die
|
|
epatch "${FILESDIR}/${P}-ffmpeg.patch" \
|
|
"${FILESDIR}/${P}-ffmpeg1.patch" \
|
|
"${FILESDIR}/${P}-libav9.patch"
|
|
|
|
if has_version ">=media-video/ffmpeg-2"; then
|
|
sed -e "s:CodecID:AVCodecID:" -i ffm.cpp
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dobin vdr2jpeg
|
|
dodoc README LIESMICH
|
|
}
|