2012-07-01 20:11:48 +00:00
|
|
|
# $Id: PKGBUILD 73064 2012-06-30 06:07:26Z jconder $
|
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
|
2014-03-30 00:21:45 +00:00
|
|
|
# - disabled vdpau, mmx, incompatible ARM FPUs
|
|
|
|
# - ffmpeg backport to fix building on GCC 4.8
|
2011-05-17 22:24:39 +00:00
|
|
|
|
|
|
|
pkgname=mythtv
|
2014-07-26 16:01:17 +00:00
|
|
|
pkgver=0.27.3
|
|
|
|
pkgrel=1
|
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')
|
2014-07-26 16:01:17 +00:00
|
|
|
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883' 'libgl'
|
2013-09-19 13:13:06 +00:00
|
|
|
'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc-utils' 'mariadb-clients'
|
|
|
|
'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
|
|
|
|
'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber' 'x264')
|
2014-07-26 16:01:17 +00:00
|
|
|
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264-dev' 'gdb')
|
2012-04-12 12:25:04 +00:00
|
|
|
optdepends=('glew: for GPU commercial flagging'
|
|
|
|
'libcec: for consumer electronics control capabilities'
|
2013-09-19 13:13:06 +00:00
|
|
|
'libxml2: to read blu-ray metadata'
|
|
|
|
'openssl: for AirTunes (RAOP) support'
|
2013-12-17 20:43:33 +00:00
|
|
|
'udisks: detect changes to removable media'
|
2012-04-12 12:25:04 +00:00
|
|
|
'xmltv: to download tv listings')
|
2014-07-26 16:17:29 +00:00
|
|
|
conflicts=('myththemes' 'mythplugins-mythvideo')
|
|
|
|
replaces=('myththemes' 'mythplugins-mythvideo')
|
2011-05-17 22:24:39 +00:00
|
|
|
install='mythtv.install'
|
2013-12-17 20:43:33 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
|
2013-09-19 13:13:06 +00:00
|
|
|
'mythbackend.service'
|
2014-03-30 00:21:45 +00:00
|
|
|
'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch'
|
2014-07-26 17:02:14 +00:00
|
|
|
'https://github.com/FFmpeg/FFmpeg/commit/8067f55edf3719182aed6e5b57b7863889f80218.patch')
|
2014-07-26 16:01:17 +00:00
|
|
|
sha256sums=('8eaaf8c6e42ca6eb81f180467de90d597dbeabb1bb14b7085da353d2980db8f4'
|
2013-12-09 23:08:56 +00:00
|
|
|
'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
|
2014-03-30 00:21:45 +00:00
|
|
|
'8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3'
|
2014-07-26 16:01:17 +00:00
|
|
|
'1816a37cf5e92f52fdce32a733eb0fa296e9107f975fc67cc9d556c3e4ac0f01')
|
2011-05-17 22:24:39 +00:00
|
|
|
|
2013-09-19 13:13:06 +00:00
|
|
|
prepare() {
|
2013-12-17 20:43:33 +00:00
|
|
|
cd "$srcdir/$pkgname-$pkgver/$pkgname"
|
2011-05-21 03:04:59 +00:00
|
|
|
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
2013-09-19 13:13:06 +00:00
|
|
|
patch -Np2 -i "$srcdir/libcec-2-support.2.patch"
|
2014-03-30 00:21:45 +00:00
|
|
|
|
|
|
|
# ffmpeg backport
|
|
|
|
cd external/FFmpeg
|
|
|
|
patch -Np1 -i "$srcdir/8067f55edf3719182aed6e5b57b7863889f80218.patch"
|
2013-09-19 13:13:06 +00:00
|
|
|
}
|
2011-05-17 22:24:39 +00:00
|
|
|
|
2013-09-19 13:13:06 +00:00
|
|
|
build() {
|
2013-12-17 20:43:33 +00:00
|
|
|
cd "$srcdir/$pkgname-$pkgver/$pkgname"
|
2012-04-12 12:25:04 +00:00
|
|
|
|
2014-03-30 00:21:45 +00:00
|
|
|
[[ $CARCH == "arm" ]] && ARCH="armv5te" && CONFIG="--disable-armv6 --disable-armv6t2 --disable-vfp"
|
|
|
|
[[ $CARCH == "armv6h" ]] && ARCH="armv6l" && CONFIG="--disable-vfp"
|
2013-01-29 21:08:00 +00:00
|
|
|
[[ $CARCH == "armv7h" ]] && ARCH="armv7-a"
|
2012-04-12 12:25:04 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--cpu="$ARCH" \
|
2012-01-29 23:57:36 +00:00
|
|
|
--disable-mmx \
|
2011-05-21 03:04:59 +00:00
|
|
|
--disable-vdpau \
|
2013-09-19 13:13:06 +00:00
|
|
|
--disable-altivec \
|
|
|
|
--disable-audio-jack \
|
|
|
|
--disable-ccache \
|
|
|
|
--enable-libfftw3 \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libvpx \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-vaapi \
|
2014-03-30 00:21:45 +00:00
|
|
|
--python=python2 \
|
|
|
|
--disable-neon $CONFIG
|
2011-05-17 22:24:39 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-12-17 20:43:33 +00:00
|
|
|
cd "$srcdir/$pkgname-$pkgver/$pkgname"
|
2011-05-17 22:24:39 +00:00
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
|
2012-07-01 20:11:48 +00:00
|
|
|
install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
|
2011-05-17 22:24:39 +00:00
|
|
|
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"
|
2012-04-12 12:25:04 +00:00
|
|
|
mkdir -p "$pkgdir/var/log/mythtv"
|
2011-05-17 22:24:39 +00:00
|
|
|
}
|