|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../vdr/pkg_xine-lib_post.conf
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
[ $SDECFG_PKG_VDR_XINE -ge 1 ] && {
|
|
|
|
|
|
|
|
if xpatch="`match_source_file vdr-xine vdr`"; then
|
|
|
|
echo_status "vdr: injecting patch ..."
|
|
|
|
hook_add prepatch 5 "rm -rf /tmp/xine-*; tar -C /tmp -v $taropt $base/download/mirror/v/$xpatch */xine-lib.patch"
|
|
|
|
hook_add prepatch 6 "vdr_fix_and_inject_patch $xpatch"
|
|
|
|
|
|
|
|
echo_status "vdr: force autogen ..."
|
|
|
|
autogen=1
|
|
|
|
|
|
|
|
# removed on postinstall
|
|
|
|
hook_add postinstall 5 "rm -rf /tmp/${xpatch%.tbz2*}/"
|
|
|
|
|
|
|
|
vdr_fix_and_inject_patch() {
|
|
|
|
local patchfile=$( echo /tmp/xine-*/patches/xine-lib.patch )
|
|
|
|
var_append patchfiles ' ' "$patchfile"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
abort "what? vdr xine-lib.patch not found!"
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|