2012-02-01 04:48:03 +00:00
|
|
|
# $Id$
|
2011-05-17 22:24:39 +00:00
|
|
|
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
|
|
|
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
|
|
|
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
|
|
|
|
# Contributor: <kleptophobiac@gmail.com>
|
|
|
|
# Contributor: dorphell <dorphell@archlinux.org>
|
|
|
|
|
2011-12-22 07:13:40 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2011-05-17 22:24:39 +00:00
|
|
|
# - correctly define ARM cpus for configure
|
2012-01-29 23:57:36 +00:00
|
|
|
# - disabled vdpau, mmx
|
2011-05-17 22:24:39 +00:00
|
|
|
|
|
|
|
plugrel=1
|
|
|
|
|
|
|
|
pkgname=mythtv
|
2012-01-29 23:57:36 +00:00
|
|
|
pkgver=0.24.2
|
2012-03-16 19:40:16 +00:00
|
|
|
pkgrel=3
|
2011-05-17 22:24:39 +00:00
|
|
|
epoch=1
|
|
|
|
pkgdesc="A Homebrew PVR project"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.mythtv.org/"
|
|
|
|
license=('GPL')
|
2012-01-29 23:57:36 +00:00
|
|
|
depends=('lame' 'libavc1394' 'libiec61883' 'libpulse' 'libxinerama'
|
2011-12-22 07:13:40 +00:00
|
|
|
'libxvmc' 'libxxf86vm' 'lirc-utils' 'mesa' 'mysql-clients'
|
|
|
|
'mysql-python' 'perl-dbd-mysql' 'perl-libwww' 'perl-net-upnp'
|
2012-03-16 19:40:16 +00:00
|
|
|
'python2-lxml' 'wget' 'qtwebkit')
|
2011-05-17 22:24:39 +00:00
|
|
|
makedepends=('yasm')
|
|
|
|
optdepends=('xmltv: to download tv listings')
|
|
|
|
backup=('etc/conf.d/mythbackend')
|
|
|
|
install='mythtv.install'
|
|
|
|
source=("ftp://ftp.osuosl.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
|
|
|
|
'mythbackend.rc'
|
2012-01-29 23:57:36 +00:00
|
|
|
'mythbackend.conf')
|
|
|
|
md5sums=('7259fd24560da77da90b1494492f9550'
|
2011-05-17 22:24:39 +00:00
|
|
|
'feadcc9ad064d93d6dceab1efc0bd9ed'
|
2012-01-29 23:57:36 +00:00
|
|
|
'bb8e4033d82428d827570fae9ba15e6a')
|
2011-05-17 22:24:39 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2011-05-21 03:04:59 +00:00
|
|
|
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
2011-05-17 22:24:39 +00:00
|
|
|
|
2011-05-21 03:04:59 +00:00
|
|
|
[[ $CARCH == "arm" ]] && ARCH="armv5te"
|
|
|
|
[[ $CARCH == "armv7" ]] && ARCH="armv7-a"
|
|
|
|
./configure --prefix=/usr --cpu="$ARCH" \
|
2012-01-29 23:57:36 +00:00
|
|
|
--disable-mmx \
|
2011-05-17 22:24:39 +00:00
|
|
|
--enable-audio-oss \
|
|
|
|
--enable-audio-alsa \
|
|
|
|
--disable-audio-jack \
|
2011-05-21 03:04:59 +00:00
|
|
|
--enable-audio-pulse \
|
2011-05-17 22:24:39 +00:00
|
|
|
--disable-altivec \
|
|
|
|
--disable-distcc \
|
|
|
|
--disable-ccache \
|
2011-05-21 03:04:59 +00:00
|
|
|
--disable-vdpau \
|
2011-05-17 22:24:39 +00:00
|
|
|
--enable-dvb \
|
|
|
|
--dvb-path=/usr/include \
|
|
|
|
--enable-lirc \
|
|
|
|
--enable-joystick-menu \
|
|
|
|
--enable-v4l \
|
|
|
|
--enable-ivtv \
|
|
|
|
--enable-xvmc \
|
|
|
|
--enable-xvmcw \
|
|
|
|
--enable-xvmc-vld \
|
|
|
|
--enable-firewire \
|
|
|
|
--enable-opengl-vsync \
|
|
|
|
--enable-xrandr \
|
|
|
|
--enable-xv \
|
|
|
|
--enable-x11 \
|
2011-05-31 21:08:31 +00:00
|
|
|
--with-bindings=perl,python \
|
|
|
|
--python=python2
|
2011-05-17 22:24:39 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
|
|
|
|
install -D -m755 "$srcdir/mythbackend.rc" "$pkgdir/etc/rc.d/mythbackend"
|
|
|
|
install -D -m644 "$srcdir/mythbackend.conf" "$pkgdir/etc/conf.d/mythbackend"
|
|
|
|
install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/share/mythtv"
|
|
|
|
cp -R 'contrib' "$pkgdir/usr/share/mythtv"
|
|
|
|
}
|