Unverified Commit 206132b7 authored by Leo's avatar Leo Committed by prspkt

community/vdr: use mpv-dev and modernize

parent 3ca18279
......@@ -10,10 +10,10 @@ arch="all"
license="GPL-2.0-or-later"
depends_dev="libexecinfo-dev fontconfig-dev freetype-dev gettext-dev libjpeg-turbo-dev fribidi-dev
libcap-dev alsa-lib-dev libvdpau-dev libva-dev libx11-dev xcb-util-dev xcb-util-wm-dev
ffmpeg-dev libcdio-dev mpv libdvbcsa-dev ncurses-dev"
ffmpeg-dev libcdio-dev mpv-dev libdvbcsa-dev ncurses-dev"
makedepends="$depends_dev bash coreutils groff perl util-linux openssl-dev"
install="$pkgname.pre-install"
pkgusers="$pkgname"
pkgusers="$pkgname"
pkggroups="$pkgname"
subpackages="
$pkgname-dev
......@@ -102,8 +102,6 @@ source="ftp://ftp.tvdr.de/$pkgname/$pkgname-$pkgver.tar.bz2
include-missing-limits.patch
streamdev_makefile.patch"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cp -aP $srcdir/vdr-plugin-femon-${_femon_ver} ${builddir}/PLUGINS/src/femon
cp -aP $srcdir/vdr-plugin-mpv-${_mpv_ver} ${builddir}/PLUGINS/src/mpv
......@@ -114,12 +112,10 @@ prepare() {
cp -aP $srcdir/svdrpservice-${_svdrpservice_ver} ${builddir}/PLUGINS/src/svdrpservice
cp -aP $srcdir/vdr-manager-${_vdrmanager_ver}/vdr-vdrmanager ${builddir}/PLUGINS/src/vdrmanager
sed -i -e 's,^--- ,--- a/,' -e 's,^+++ ,+++ b/,' -e 's,\([a|b]\)/\./,\1/,' $srcdir/[0-9][0-9]-vdr-2.4.0-*.patch
cd "$builddir"
default_prepare
}
build() {
cd "$builddir"
cp $srcdir/Make.config $builddir
case "$CARCH" in
x86*) make ;;
......@@ -173,7 +169,6 @@ skincurses() {
}
package() {
cd "$builddir"
case "$CARCH" in
x86*) make -j1 DESTDIR="$pkgdir" install ;;
*) make -j1 LIBDVBCSA=1 DESTDIR="$pkgdir" install ;;
......@@ -188,8 +183,8 @@ package() {
_plugin_defaults() {
depends="${pkgname}=$pkgver-r$pkgrel"
cd "$pkgdir"
mkdir -p ${subpkgdir}/usr/lib/vdr
cd "$pkgdir"
mkdir -p ${subpkgdir}/usr/lib/vdr
local plugin_name
for plugin_name in "$@"; do
[ -f ${srcdir}/${plugin_name}.conf ] && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment