summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/trunk/mythtv/compile_mythtv.sh
blob: ca457e31203a35f0226ed470e6a8ddc9c75ffdd9 (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
97
98
99
#!/bin/bash
# compile_mythtv.sh
# rev 0.5 - 1Nov2008
#
# This script will compile and install MythTV
#

PKG_MAINTAINER=nharris@eoimaging.com
echo PKG_MAINTAINER is set to $PKG_MAINTAINER

PKG_VER=0.22-svn`date +%Y%m%d`
echo PKG_VER is set to $PKG_VER

cd src/mythtv-trunk

#
# compile mythtv
#
echo Compiling mythtv
cd mythtv
export QTDIR=/usr/share/qt
./configure --enable-opengl-vsync --cpu=i686 --enable-vdpau --enable-opengl-vsync --enable-libfaad --prefix=/usr
#./configure --cpu=i686 --enable-dvb --enable-xvmc --enable-opengl-vsync --enable-xvmc-pro --enable-libfaad --prefix=/usr
qmake mythtv.pro
make || return 1

#
# install mythtv
#
#echo "MythTV 0.22 SVN build" > description-pak
#checkinstall -D --default --pkgname mythtv --pkgversion $PKG_VER --maintainer $PKG_MAINTAINER
#mv myth*.deb ../..
sudo make install
cd ..

#
# compile mythplugins
#
echo Compiling mythplugings
cd mythplugins
./configure --enable-all --cpu=i686 --prefix=/usr
qmake mythplugins.pro
make || return 1

#
# install mythplugins
#
#echo "MythTV 0.22 SVN build" > description-pak
#checkinstall -D --default --pkgname mythplugins --pkgversion $PKG_VER --maintainer $PKG_MAINTAINER
#mv myth*.deb ../..
sudo make install
cd ..

#
# compile myththemes
#
echo Compiling myththemes
cd myththemes
./configure --prefix=/usr
qmake myththemes.pro
make || return 1

#
# install myththemes
#
#echo "MythTV 0.22 SVN build" > description-pak
#checkinstall -D --default --pkgname myththemes --pkgversion $PKG_VER --maintainer $PKG_MAINTAINER
#mv myth*.deb ../..
sudo make install
cd ..

#
# compile additional themes
#
echo Compiling additional themes
cd themes
./configure --prefix=/usr
qmake themes.pro
make || return 1

#
# install additional themes
#
#echo "MythTV 0.22 SVN build" > description-pak
#checkinstall -D --default --pkgname mythtv-themes --pkgversion $PKG_VER --maintainer $PKG_MAINTAINER
#mv myth*.deb ../..
sudo make install
cd ..

#
# update mythweb
#
cd mythplugins/mythweb
sudo cp -R * /data/srv/httpd/htdocs/mythweb
sudo chown -R http:users /data/srv/httpd/htdocs/mythweb
cd ../..

echo "DONE!"