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
|
2016-05-08 21:31:59 +00:00
|
|
|
# - patch to fix v5 build
|
2011-05-17 22:24:39 +00:00
|
|
|
|
|
|
|
pkgname=mythtv
|
2016-04-14 00:23:45 +00:00
|
|
|
pkgver=0.28
|
2016-08-05 00:00:46 +00:00
|
|
|
pkgrel=6
|
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')
|
2015-04-21 12:10:05 +00:00
|
|
|
depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
|
|
|
|
'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
|
2013-09-19 13:13:06 +00:00
|
|
|
'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
|
2016-04-14 00:23:45 +00:00
|
|
|
'perl-net-upnp' 'python2-lxml' 'qt5-webkit' 'qt5-script' 'taglib' 'urlgrabber'
|
|
|
|
'libx264' 'exiv2' 'libxrandr')
|
2014-08-07 16:16:09 +00:00
|
|
|
makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' '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'
|
2016-04-14 00:23:45 +00:00
|
|
|
'openssl: for AirTunes (RAOP) support')
|
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"
|
2016-07-23 14:55:14 +00:00
|
|
|
mythtv-fix-segfault.patch::"https://github.com/MythTV/mythtv/commit/c3a79298.patch"
|
|
|
|
mythtv-gcc6.patch::"https://github.com/MythTV/mythtv/commit/e4f6e011.patch"
|
2016-05-08 21:31:59 +00:00
|
|
|
'mythbackend.service' '99-mythbackend.rules'
|
2016-07-23 16:19:44 +00:00
|
|
|
'0001-libudfread-set-HAVE_PTHREAD_H.patch')
|
2016-05-08 21:31:59 +00:00
|
|
|
sha256sums=('7b3476c0ec0fc17d6b734f0440383815e81850a70b78c12ee40d61a408eba340'
|
2016-07-23 14:55:14 +00:00
|
|
|
'60696991fcaa24fb61392401bd27cfa35a15b54f4bcc01aee54dc84440c6df99'
|
|
|
|
'd35c4738f331ffff7d26d4cb98965689bdc72bd5b9776c1b31e5d97d06be724e'
|
2013-12-09 23:08:56 +00:00
|
|
|
'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
|
2016-05-08 21:31:59 +00:00
|
|
|
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333'
|
2016-07-23 16:19:44 +00:00
|
|
|
'c15efbcc7d8db4a185ef908861f48633353173012b18dada44df4c200fea8072')
|
2011-05-17 22:24:39 +00:00
|
|
|
|
2013-09-19 13:13:06 +00:00
|
|
|
prepare() {
|
2016-04-14 00:23:45 +00:00
|
|
|
cd $pkgname-$pkgver/$pkgname
|
2015-11-12 00:40:18 +00:00
|
|
|
|
2016-04-14 18:23:18 +00:00
|
|
|
find 'bindings/python' 'contrib' 'programs/scripts' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
|
2016-05-08 21:31:59 +00:00
|
|
|
|
2016-07-23 14:55:14 +00:00
|
|
|
# Fix segfault with GCC 6 https://github.com/MythTV/mythtv/pull/122
|
|
|
|
cd ..
|
|
|
|
patch -p1 -i "$srcdir"/mythtv-fix-segfault.patch
|
|
|
|
# Fix build with GCC 6
|
|
|
|
patch -p1 -i "$srcdir"/mythtv-gcc6.patch
|
|
|
|
|
2016-07-23 16:19:44 +00:00
|
|
|
patch -p1 -i "${srcdir}/0001-libudfread-set-HAVE_PTHREAD_H.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() {
|
2016-04-14 00:23:45 +00:00
|
|
|
cd $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"
|
2016-04-14 02:21:22 +00:00
|
|
|
[[ $CARCH == "aarch64" ]] && CONFIG+=" --enable-vaapi" || CONFIG+=" --disable-vaapi"
|
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 \
|
2014-03-30 00:21:45 +00:00
|
|
|
--python=python2 \
|
2014-08-08 14:27:21 +00:00
|
|
|
--perl-config-opts=INSTALLDIRS=vendor \
|
2014-03-30 00:21:45 +00:00
|
|
|
--disable-neon $CONFIG
|
2011-05-17 22:24:39 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-04-14 00:23:45 +00:00
|
|
|
cd $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"
|
2016-04-14 00:23:45 +00:00
|
|
|
|
|
|
|
# Install udev rules https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_tuners_have_initialized
|
|
|
|
install -Dm644 "$srcdir"/99-mythbackend.rules "$pkgdir"/usr/lib/udev/rules.d/99-mythbackend.rules
|
2011-05-17 22:24:39 +00:00
|
|
|
}
|