summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/trunk/mythtv-svn/PKGBUILD
blob: b5dc31ddbdcdfd08cc565100cb8309cae7e24df3 (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
pkgname=mythtv-svn
pkgver=19295
pkgrel=1
pkgdesc="A personal video recorder for Linux"
url="http://www.mythtv.org"
license="GPL"
depends=('lame' 'libmysqlclient' 'alsa-lib'  'wget' 'qt' 'x-server' 'freetype2' 'libmpeg2' 'libxml2' 'libraw1394' 'lirc' 'perl-date-manip' 'libavc1394' 'libdc1394' 'libiec61883')
makedepends=('subversion')
conflicts=(mythtv)
replaces=()
backup=()
options=(!strip)
MAKEFLAGS="-j6"
install='mythtv.install'

patchs=('DeviceReadBuffer-polltimeout.2.patch' 'hdpvr-v4lchannel-tweak.patch' 'mpegrecorder-hdpvr-v1.1.patch' 'mythcommflag-avidemux.2.patch')
source=('mythbackend' 'myth.sh'  'smolt_jump.patch' 'svn_main_menu_popup.patch' `echo ${patchs[@]:0}` )
arch=('i686')
md5sums=()



_svntrunk=http://cvs.mythtv.org/svn/trunk/mythtv
_svnmod=mythtv

build() {

    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
    cd $startdir/src/mythtv
    echo "--------------------------applying patches----------------------------------------------------"
	patch -Np0 -i  $startdir/src/smolt_jump.patch #|| return 1
	patch -Np0 -i  $startdir/src/svn_main_menu_popup.patch #||return 1

    for i in `echo ${patchs[@]:0} `
    do
        echo applying $i
        echo "------------"
        patch -Np0  -i ${startdir}/src/$i  #|| return 1
    done
    echo "--------------------------done   applying patches----------------------------------------------------"
    sed -i -e "s/\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`/$pkgver/" version.pro
    make distclean
    ./configure --prefix=/usr --enable-xvmc --enable-xvmc-pro --enable-opengl-vsync --enable-dvb --enable-firewire --compile-type=release --with-bindings=perl --disable-audio-arts --disable-xrandr 
    . /etc/profile
    make
    make INSTALL_ROOT=$startdir/pkg install
    
  #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
    
    #   mkdir -p $startdir/pkg/usr/share/mythtv/contrib
    #   mkdir -p $startdir/pkg/etc/rc.d
    #   mkdir -p $startdir/pkg/var/log/mythtv
    #   mkdir -p $startdir/pkg/etc/profile.d
    #   install -m0755 ../myth.sh $startdir/pkg/etc/profile.d/
    
    # install contrib
    #   mkdir -p $startdir/pkg/usr/local/share/mythtv/contrib || return 1
    #   cp -rp contrib/* $startdir/pkg/usr/local/share/mythtv/contrib
    #   echo "-release-fixes"   >  $startdir/pkg/usr/local/share/mythtv/.releasetype   
    # install -m0755 themes/*.ttf $startdir/pkg/usr/local/share/mythtv/themes/
    
    
    #   mkdir -p $startdir/pkg/usr/lib/
    #   mv $startdir/pkg/usr/local/lib/perl5 $startdir/pkg/usr/lib/perl5
    #  cd $startdir/src/mythtv/contrib
    #  gcc -Wall -o firewire_tester firewire_tester.c -liec61883 -lraw1394
    # install -m0755 firewire_tester $startdir/pkg/usr/local/bin/firewire_tester
    #install -m0755  $startdir/pkg/usr/local/share/mythtv/contrib/optimize_mythdb.pl  $startdir/pkg/usr/local/bin/optimize_mythdb.pl 
    #    cp $startdir/src/myth.find_orphans.pl $startdir/pkg/usr/local/share/mythtv/contrib/myth.find_orphans.pl
    # install -m0755  $startdir/pkg/usr/local/share/mythtv/contrib/myth.find_orphans.pl  $startdir/pkg/usr/local/bin/myth.find_orphans.pl
    

}