mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/mythtv to 0.25-1
This commit is contained in:
parent
f59989b9fa
commit
eec52d338a
4 changed files with 192 additions and 135 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id$
|
# $Id: PKGBUILD 69261 2012-04-11 06:53:15Z jconder $
|
||||||
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
|
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
|
||||||
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
||||||
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
|
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
|
||||||
|
@ -12,59 +12,55 @@
|
||||||
plugrel=1
|
plugrel=1
|
||||||
|
|
||||||
pkgname=mythtv
|
pkgname=mythtv
|
||||||
pkgver=0.24.2
|
pkgver=0.25
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="A Homebrew PVR project"
|
pkgdesc="A Homebrew PVR project"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.mythtv.org/"
|
url="http://www.mythtv.org/"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('lame' 'libavc1394' 'libiec61883' 'libpulse' 'libxinerama'
|
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
|
||||||
'libxvmc' 'libxxf86vm' 'lirc-utils' 'mesa' 'mysql-clients'
|
'libpulse' 'libva' 'libxinerama' 'lirc-utils' 'mesa'
|
||||||
'mysql-python' 'perl-dbd-mysql' 'perl-libwww' 'perl-net-upnp'
|
'mysql-clients' 'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6'
|
||||||
'python2-lxml' 'wget' 'qtwebkit')
|
'perl-libwww' 'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'urlgrabber'
|
||||||
makedepends=('yasm')
|
'x264')
|
||||||
optdepends=('xmltv: to download tv listings')
|
makedepends=('glew' 'libcec' 'libxml2' 'openssl' 'yasm')
|
||||||
|
optdepends=('glew: for GPU commercial flagging'
|
||||||
|
'libcec: for consumer electronics control capabilities'
|
||||||
|
'libxml2: to read blu-ray metadata'
|
||||||
|
'openssl: for AirTunes (RAOP) support'
|
||||||
|
'xmltv: to download tv listings')
|
||||||
backup=('etc/conf.d/mythbackend')
|
backup=('etc/conf.d/mythbackend')
|
||||||
install='mythtv.install'
|
install='mythtv.install'
|
||||||
source=("ftp://ftp.osuosl.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
|
source=("ftp://ftp.osuosl.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
|
||||||
|
'mythtv_0.25_gcc_4.7.patch'
|
||||||
'mythbackend.rc'
|
'mythbackend.rc'
|
||||||
'mythbackend.conf')
|
'mythbackend.conf')
|
||||||
md5sums=('7259fd24560da77da90b1494492f9550'
|
md5sums=('e49c81de40e279c83dcb1b2aa9a45748'
|
||||||
'feadcc9ad064d93d6dceab1efc0bd9ed'
|
'6090f5f22a8584db80b76cf19869ee41'
|
||||||
'bb8e4033d82428d827570fae9ba15e6a')
|
'62fd98347c56b1d9b795792f83269d25'
|
||||||
|
'1f72db0586f97a7c3fd3155dfa9a6c6f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
||||||
|
|
||||||
|
#patch -Np1 -i "$srcdir/mythtv_0.25_gcc_4.7.patch"
|
||||||
|
|
||||||
[[ $CARCH == "arm" ]] && ARCH="armv5te"
|
[[ $CARCH == "arm" ]] && ARCH="armv5te"
|
||||||
[[ $CARCH == "armv7" ]] && ARCH="armv7-a"
|
[[ $CARCH == "armv7" ]] && ARCH="armv7-a"
|
||||||
./configure --prefix=/usr --cpu="$ARCH" \
|
./configure --prefix=/usr \
|
||||||
|
--cpu="$ARCH" \
|
||||||
--disable-mmx \
|
--disable-mmx \
|
||||||
--enable-audio-oss \
|
|
||||||
--enable-audio-alsa \
|
|
||||||
--disable-audio-jack \
|
|
||||||
--enable-audio-pulse \
|
|
||||||
--disable-altivec \
|
|
||||||
--disable-distcc \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-vdpau \
|
--disable-vdpau \
|
||||||
--enable-dvb \
|
--disable-altivec \
|
||||||
--dvb-path=/usr/include \
|
--disable-audio-jack \
|
||||||
--enable-lirc \
|
--disable-ccache \
|
||||||
--enable-joystick-menu \
|
--disable-distcc \
|
||||||
--enable-v4l \
|
--enable-libfftw3 \
|
||||||
--enable-ivtv \
|
--enable-libmp3lame \
|
||||||
--enable-xvmc \
|
--enable-libx264 \
|
||||||
--enable-xvmcw \
|
--enable-vaapi \
|
||||||
--enable-xvmc-vld \
|
|
||||||
--enable-firewire \
|
|
||||||
--enable-opengl-vsync \
|
|
||||||
--enable-xrandr \
|
|
||||||
--enable-xv \
|
|
||||||
--enable-x11 \
|
|
||||||
--with-bindings=perl,python \
|
|
||||||
--python=python2
|
--python=python2
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
@ -79,4 +75,5 @@ package() {
|
||||||
|
|
||||||
mkdir -p "$pkgdir/usr/share/mythtv"
|
mkdir -p "$pkgdir/usr/share/mythtv"
|
||||||
cp -R 'contrib' "$pkgdir/usr/share/mythtv"
|
cp -R 'contrib' "$pkgdir/usr/share/mythtv"
|
||||||
|
mkdir -p "$pkgdir/var/log/mythtv"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Rename this file to:
|
|
||||||
#
|
|
||||||
# /etc/config.d/mythbackend
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
#
|
|
||||||
# Copyright (c) by the MythTV Development Team.
|
# Copyright (c) by the MythTV Development Team.
|
||||||
#
|
#
|
||||||
# Derived from work by:
|
# Derived from work by:
|
||||||
|
@ -32,21 +26,7 @@
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Config variables for the mythbackend startup script, which is usually
|
# User who should start the mythbackend process
|
||||||
# located in /etc/rc.d/mythbackend
|
|
||||||
#
|
|
||||||
# When the startup script is executed, it sources this file if it exists,
|
|
||||||
# otherwise it will fall back on default values.
|
|
||||||
#
|
|
||||||
# Leave variables commented out to use default values in init script
|
|
||||||
# (/etc/rc.d/mythbackend).
|
|
||||||
#
|
|
||||||
# To override defaults, uncomment the relevant variable definition and
|
|
||||||
# edit as required.
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# User who should start the mythbackend processes
|
|
||||||
#
|
#
|
||||||
# Running mythbackend as non-root requires you to ensure that audio/video
|
# Running mythbackend as non-root requires you to ensure that audio/video
|
||||||
# devices used for recording have suitable user permissions. One way
|
# devices used for recording have suitable user permissions. One way
|
||||||
|
@ -59,32 +39,14 @@
|
||||||
# MBE_USER='root'
|
# MBE_USER='root'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Directory holding the mythbackend binary (empty means autodetect).
|
# Startup options for mythbackend (see 'mythbackend --help' for a list).
|
||||||
#
|
#
|
||||||
# MBE_DIR=''
|
# MBE_OPTS=''
|
||||||
|
|
||||||
#
|
|
||||||
# Name of mythbackend binary.
|
|
||||||
#
|
|
||||||
# MBE_PROG='mythbackend'
|
|
||||||
|
|
||||||
#
|
|
||||||
# Other startup options for mythbackend (see 'mythbackend --help' for a list).
|
|
||||||
#
|
|
||||||
# MBE_OPTIONS=''
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Directory holding the mythbackend log file
|
# Directory holding the mythbackend log file
|
||||||
#
|
#
|
||||||
# LOG_DIR='/var/log/mythtv'
|
# LOG_PATH='/var/log/mythtv'
|
||||||
|
|
||||||
#
|
|
||||||
# Name of mythbackend log file.
|
|
||||||
#
|
|
||||||
# NOTE: If you are running as non-root take care to ensure the mythbackend user
|
|
||||||
# has permission to write to this log file.
|
|
||||||
#
|
|
||||||
# LOG_FILE='mythbackend.log'
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Logging options for mythbackend (see 'mythbackend -v help' for a list)
|
# Logging options for mythbackend (see 'mythbackend -v help' for a list)
|
||||||
|
|
|
@ -2,81 +2,72 @@
|
||||||
|
|
||||||
. /etc/rc.conf
|
. /etc/rc.conf
|
||||||
. /etc/rc.d/functions
|
. /etc/rc.d/functions
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
# Default values to use if none are supplied in the config file.
|
# Default values to use if none are supplied in the config file.
|
||||||
|
|
||||||
# Running mythbackend as non-root requires you to ensure that audio/video
|
|
||||||
# devices used for recording have suitable user permissions. One way
|
|
||||||
# to achieve this is to modify existing or create new udev rules which
|
|
||||||
# assign these devices to a non-root group with rw permissions and add
|
|
||||||
# your mythbackend user to that group. Be aware that console.perms can
|
|
||||||
# also affect device permissions and may need additional configuration.
|
|
||||||
# Running as non-root may also introduce increased process latency.
|
|
||||||
#
|
#
|
||||||
# User who should start the mythbackend processes
|
# User who should start the mythbackend process
|
||||||
MBE_USER='root'
|
MBE_USER='root'
|
||||||
|
|
||||||
# Startup options for mythbackend
|
# Startup options for mythbackend
|
||||||
MBE_OPTIONS=''
|
MBE_OPTS=''
|
||||||
|
|
||||||
# Name of mythbackend log file
|
# Directory holding the mythbackend log file
|
||||||
LOG_FILE='/var/log/mythbackend.log'
|
LOG_PATH='/var/log/mythtv'
|
||||||
|
|
||||||
# Logging options for mythbackend (empty means '-v important,general')
|
# Logging options for mythbackend
|
||||||
LOG_OPTS=''
|
LOG_OPTS=''
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
CONFIG_FILE=/etc/conf.d/mythbackend
|
CONFIG_FILE=/etc/conf.d/mythbackend
|
||||||
PIDFILE=/var/run/mythbackend.pid
|
PIDFILE=/var/run/mythbackend.pid
|
||||||
|
|
||||||
if [[ -f ${CONFIG_FILE} ]]; then
|
if [[ -r "$CONFIG_FILE" ]]; then
|
||||||
. ${CONFIG_FILE}
|
. "$CONFIG_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pid="$(cat ${PIDFILE} 2>/dev/null || pidof mythbackend)";
|
PID="$(cat "$PIDFILE" 2> /dev/null || pidof mythbackend)"
|
||||||
|
export HOME="$(getent passwd "$MBE_USER" | cut -d : -f 6)"
|
||||||
# fix FS#11890
|
|
||||||
mbe_user_home="$(getent passwd ${MBE_USER}|cut -d : -f 6)"
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
stat_busy "Starting MythTV Backend"
|
stat_busy "Starting MythTV Backend"
|
||||||
|
|
||||||
# already running ?
|
if [[ "$PID" -gt 0 ]] && kill -0 "$PID"; then
|
||||||
if [[ "${pid}" -gt 0 ]] && kill -0 "${pid}"; then
|
|
||||||
stat_fail
|
stat_fail
|
||||||
exit 1;
|
exit 0
|
||||||
fi
|
fi
|
||||||
touch ${PIDFILE} ${LOG_FILE}
|
|
||||||
chown "$MBE_USER" ${PIDFILE} ${LOG_FILE}
|
touch "$PIDFILE"
|
||||||
if su "$MBE_USER" -c "HOME=${mbe_user_home} mythbackend \
|
chown "$MBE_USER" "$PIDFILE" "$LOG_PATH"
|
||||||
--daemon \
|
|
||||||
--logfile $LOG_FILE $LOG_OPTS \
|
MBE_CMD="/usr/bin/mythbackend --daemon \
|
||||||
--pidfile ${PIDFILE} $MBE_OPTIONS";
|
--logpath "$LOG_PATH" $LOG_OPTS \
|
||||||
then
|
--pidfile "$PIDFILE" $MBE_OPTS"
|
||||||
|
if su "$MBE_USER" -c "$MBE_CMD"; then
|
||||||
add_daemon mythbackend
|
add_daemon mythbackend
|
||||||
stat_done
|
stat_done
|
||||||
else
|
else
|
||||||
stat_fail
|
stat_fail
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
stat_busy "Stopping MythTV Backend"
|
stat_busy "Stopping MythTV Backend"
|
||||||
if [[ "${pid}" -gt 0 ]] && kill $pid &>/dev/null; then
|
if [[ "$PID" -gt 0 ]] && kill "$PID" &> /dev/null; then
|
||||||
rm_daemon mythbackend
|
rm_daemon mythbackend
|
||||||
stat_done
|
stat_done
|
||||||
rm ${PIDFILE} 2>/dev/null
|
rm -f "$PIDFILE"
|
||||||
else
|
else
|
||||||
stat_fail
|
stat_fail
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
$0 stop
|
"$0" stop
|
||||||
$0 start
|
"$0" start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "usage: $0 {start|stop|restart}"
|
echo "usage: $0 (start|stop|restart)"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|
107
community/mythtv/mythtv_0.25_gcc_4.7.patch
Normal file
107
community/mythtv/mythtv_0.25_gcc_4.7.patch
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
*** a/libs/libmythbase/compat.h 2012-03-31 20:52:30.430461503 -0400
|
||||||
|
--- b/libs/libmythbase/compat.h 2012-03-31 20:59:05.935585911 -0400
|
||||||
|
***************
|
||||||
|
*** 44,49 ****
|
||||||
|
--- 44,51 ----
|
||||||
|
# include <sys/resource.h> // for setpriority
|
||||||
|
# include <sys/socket.h>
|
||||||
|
# include <sys/wait.h> // For WIFEXITED on Mac OS X
|
||||||
|
+ # include <stdio.h> // for snprintf(), used by inline dlerror()
|
||||||
|
+ # include <unistd.h> // for usleep()
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USING_MINGW
|
||||||
|
*** a/libs/libmyth/rssparse.h 2012-03-31 20:52:30.427453729 -0400
|
||||||
|
--- b/libs/libmyth/rssparse.h 2012-03-31 21:51:11.687438044 -0400
|
||||||
|
***************
|
||||||
|
*** 13,18 ****
|
||||||
|
--- 13,19 ----
|
||||||
|
#include <QPair>
|
||||||
|
#include <QMap>
|
||||||
|
#include <QVariant>
|
||||||
|
+ #include <sys/types.h>
|
||||||
|
|
||||||
|
#include "mythexp.h"
|
||||||
|
|
||||||
|
*** a/libs/libmythtv/audioinput.h 2012-03-31 22:41:55.626923063 -0400
|
||||||
|
--- b/libs/libmythtv/audioinput.h 2012-03-31 22:41:22.478248297 -0400
|
||||||
|
***************
|
||||||
|
*** 22,27 ****
|
||||||
|
--- 22,28 ----
|
||||||
|
#define _AUDIOINPUT_H_
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
+ #include <unistd.h>
|
||||||
|
|
||||||
|
class AudioInput
|
||||||
|
{
|
||||||
|
*** a/external/FFmpeg/libavcodec/x86/h264_qpel_mmx.c 2012-03-31 20:52:29.923150437 -0400
|
||||||
|
--- b/external/FFmpeg/libavcodec/x86/h264_qpel_mmx.c 2012-03-31 21:58:48.422270780 -0400
|
||||||
|
***************
|
||||||
|
*** 398,404 ****
|
||||||
|
"2: \n\t"\
|
||||||
|
\
|
||||||
|
: "+a"(src), "+c"(dst)\
|
||||||
|
! : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
|
||||||
|
: "memory"\
|
||||||
|
);\
|
||||||
|
src += 4-(h+5)*srcStride;\
|
||||||
|
--- 398,404 ----
|
||||||
|
"2: \n\t"\
|
||||||
|
\
|
||||||
|
: "+a"(src), "+c"(dst)\
|
||||||
|
! : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
|
||||||
|
: "memory"\
|
||||||
|
);\
|
||||||
|
src += 4-(h+5)*srcStride;\
|
||||||
|
***************
|
||||||
|
*** 446,452 ****
|
||||||
|
QPEL_H264HV(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, 15*48)\
|
||||||
|
"2: \n\t"\
|
||||||
|
: "+a"(src)\
|
||||||
|
! : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)\
|
||||||
|
: "memory"\
|
||||||
|
);\
|
||||||
|
tmp += 4;\
|
||||||
|
--- 446,452 ----
|
||||||
|
QPEL_H264HV(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, 15*48)\
|
||||||
|
"2: \n\t"\
|
||||||
|
: "+a"(src)\
|
||||||
|
! : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)\
|
||||||
|
: "memory"\
|
||||||
|
);\
|
||||||
|
tmp += 4;\
|
||||||
|
***************
|
||||||
|
*** 823,829 ****
|
||||||
|
"2: \n\t"\
|
||||||
|
\
|
||||||
|
: "+a"(src), "+c"(dst)\
|
||||||
|
! : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
|
||||||
|
: XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3", \
|
||||||
|
"%xmm4", "%xmm5", "%xmm6", "%xmm7",)\
|
||||||
|
"memory"\
|
||||||
|
--- 823,829 ----
|
||||||
|
"2: \n\t"\
|
||||||
|
\
|
||||||
|
: "+a"(src), "+c"(dst)\
|
||||||
|
! : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
|
||||||
|
: XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3", \
|
||||||
|
"%xmm4", "%xmm5", "%xmm6", "%xmm7",)\
|
||||||
|
"memory"\
|
||||||
|
***************
|
||||||
|
*** 878,884 ****
|
||||||
|
QPEL_H264HV_XMM(%%xmm3, %%xmm4, %%xmm5, %%xmm0, %%xmm1, %%xmm2, 15*48)
|
||||||
|
"2: \n\t"
|
||||||
|
: "+a"(src)
|
||||||
|
! : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)
|
||||||
|
: XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3",
|
||||||
|
"%xmm4", "%xmm5", "%xmm6", "%xmm7",)
|
||||||
|
"memory"
|
||||||
|
--- 878,884 ----
|
||||||
|
QPEL_H264HV_XMM(%%xmm3, %%xmm4, %%xmm5, %%xmm0, %%xmm1, %%xmm2, 15*48)
|
||||||
|
"2: \n\t"
|
||||||
|
: "+a"(src)
|
||||||
|
! : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)
|
||||||
|
: XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3",
|
||||||
|
"%xmm4", "%xmm5", "%xmm6", "%xmm7",)
|
||||||
|
"memory"
|
Loading…
Reference in a new issue