blob: 8bf89e6cb8a48bcb4d1fe1d20f4b638c0a69795f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
pkgname=mythtv-vdpau
pkgver=0.21
pkgrel=4
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' 'nvidia>=180.29')
backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt usr/share/mythtv/is.xml)
source=(ftp://ftp.knoppmyth.net/R6/sources/mythtv-${pkgver}-fixes.tar.bz2 \
mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch \
smolt_jump.patch pretty \
http://www.avenard.org/files/media/vdpau/mythtv-fixes-glvdpau20018.patch.gz)
#md5sums=('e316ed18d7ac837cf8c4af54b1478793' '7ef6de58240e7aad389a0b13d91b1cf6'\
# 'a0ecb7f476cb71c0c1ac90d349fc7695')
conflicts=('mythtv')
provides=('mythtv'=${pkgver})
license=('GPL2')
makedepends=(libgl subversion 'nvidia-utils>=180.29')
groups=('pvr')
url="http://www.mythtv.org/"
install=mythtv.install
build() {
cd $startdir/src/mythtv-${pkgver} || return 1
svn update
#apply patches
patch -p0 < ../myththemedmenu.cpp.patch
patch -p0 < ../myththemedmenu.h.patch
# patch -p0 < ../pop_be_restart.h.patch
# patch -p0 < ../pop_be_restart.cpp.patch
patch -p0 < ../smolt_jump.patch
# patch -p0 < ../2.6.28_dvb_api_version.diff
patch -p1 < ../mythtv-fixes-glvdpau20018.patch
. /etc/profile.d/qt3.sh
# use QT3 qmake
export PATH=$QTDIR/bin:$PATH
[ "$CARCH" = "i686" ] && ARCH="i686"
[ "$CARCH" = "x86_64" ] && ARCH="x86-64"
./configure --prefix=/usr --cpu=${ARCH} --enable-mmx --enable-audio-oss \
--enable-audio-alsa --enable-dvb --enable-lirc --enable-joystick-menu \
--disable-firewire --enable-v4l --enable-ivtv --enable-dvb \
--dvb-path=/usr/include --enable-xvmc --disable-ffmpeg \
--enable-xvmc-pro --enable-xvmc-vld --enable-opengl-vsync \
--disable-audio-jack --disable-audio-arts --disable-directfb \
--enable-vdpau --enable-opengl-video --enable-ffmpeg-pthreads \
--enable-glx-procaddrarb || return 1
# build
#needs the subversion program
pkgversubversion=`svnversion`
echo $pkgversubversion
sed -i -e "s/\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`/$pkgversubversion/" version.pro
# qmake mythtv.pro || return 1
# make qmake || return 1
make || return 1
# basic install
make INSTALL_ROOT=$startdir/pkg install || return 1
# install db schema
install -m0644 database/mc.sql $startdir/pkg/usr/share/mythtv/ \
|| return 1
install -D -m0755 ../mythbackend $startdir/pkg/etc/rc.d/mythbackend \
|| return 1
cp -r docs $startdir/pkg/usr/share/mythtv/ || return 1
# cp ../QUICKSTART.archlinux $startdir/pkg/usr/share/mythtv/ \
# || return 1
# install contrib
mkdir -p $startdir/pkg/usr/share/mythtv/contrib || return 1
install -m0755 contrib/* $startdir/pkg/usr/share/mythtv/contrib
# set suid on mythfrontend
#chmod a+s $startdir/pkg/usr/bin/mythfrontend
#Patch the xml LinHES style
cp -r $startdir/menu-xml/*.xml $startdir/pkg/usr/share/mythtv
cd $startdir/pkg/usr/share/mythtv
patch -p0 < $startdir/menu-xml/mainmenu.xml.patch
patch -p0 < $startdir/menu-xml/optical_menu.xml.patch
patch -p0 < $startdir/menu-xml/library.xml.patch
patch -p0 < $startdir/menu-xml/util_menu.xml.patch
#Make log dir
mkdir -p $startdir/pkg/var/log/mythtv
chown 1000.1000 $startdir/pkg/var/log/mythtv
mkdir -p $startdir/pkg/etc/cron.hourly
install -m0755 $startdir/src/pretty $startdir/pkg/etc/cron.hourly/
}
|