blob: 537245f155c5d7e0ad54842f1f9062f9f28719f9 (
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
|
pkgname=mythtv
pkgver=0.21
pkgrel=23
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
'libxvmc')
backup=('etc/mythtv/mythbackend.conf' 'etc/mythtv/mysql.txt' 'usr/share/mythtv/is.xml')
source=(ftp://ftp.knoppmyth.net/R6/sources/${pkgname}-${pkgver}-fixes.tar.bz2 \
mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch smolt_jump.patch )
#md5sums=('e316ed18d7ac837cf8c4af54b1478793' '7ef6de58240e7aad389a0b13d91b1cf6'\
# 'a0ecb7f476cb71c0c1ac90d349fc7695')
license=('GPL2')
makedepends=(libgl subversion)
groups=('pvr')
url="http://www.mythtv.org/"
install=mythtv.install
build() {
cd $startdir/src/${pkgname}-${pkgver} || return 1
#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
. /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/linux/dvb --enable-xvmc --disable-ffmpeg \
--enable-xvmc-pro --enable-xvmc-vld --enable-opengl-vsync \
--disable-audio-jack --disable-audio-arts || 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
}
|