Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / mythtv / mythtv_0.16.oe
1 DESCRIPTION = "A full featured personal video recorder system."
2 MAINTAINER = "Michael 'Mickey' Lauer"
3 SECTION = "x11/multimedia"
4 PR = "r2"
5
6 SRC_URI = "http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2"
7
8 DEPENDS = "xinerama qt-x11-free lame libxv libxxf86vm libxvmc lirc"
9 RDEPENDS = "qt-x11-plugins"
10
11 inherit qmake qt3x11
12
13 # there is a -march=586 somewhere in the source tree
14 COMPATIBLE_HOST = 'i.86.*-linux'
15
16 QMAKE_PROFILES = "mythtv.pro"
17
18 def mythtv_arch(d):
19         import oe, re
20         arch = oe.data.getVar('TARGET_ARCH', d, 1)
21         if re.match("^i.86$", arch):
22                 arch = "x86"
23         elif arch == "x86_64":
24                 arch = "x86"
25         elif arch == "arm":
26                 arch = "armv4l"
27         return arch
28
29 MYTHTV_ARCH := "${@mythtv_arch(d)}"
30
31 do_configure_prepend() {
32 # it's not autotools anyway, so we call ./configure directly
33         find . -name "Makefile"|xargs rm -f
34         ./configure     --prefix=/usr           \
35                         --mandir=/usr/man       \
36                         --disable-mp3lame       \
37                         --enable-vorbis         \
38                         --disable-faad          \
39                         --disable-faadbin       \
40                         --disable-faac          \
41                         --disable-mingw32       \
42                         --enable-a52            \
43                         --disable-a52bin        \
44                         --enable-pp             \
45                         --enable-shared-pp      \
46                         --enable-shared         \
47                         --disable-amr_nb        \
48                         --disable-amr_nb-fixed  \
49                         --disable-sunmlib       \
50                                                 \
51                         --cpu=${MYTHTV_ARCH}    \
52                         --enablee-mmx           \
53                         --disable-altivec       \
54                         --enable-v4l            \
55                         --enable-audio-oss      \
56                         --disable-audio-beos    \
57                         --enable-dv1394         \
58                         --enable-network        \
59                         --enable-zlib           \
60                         --enable-simple_idct    \
61                         --disable-vhook         \
62                         --disable-mpegaudio-hp  \
63                         --enable-ffserver       \
64                         --enable-ffplay         \
65                         --enable-risky
66
67         sed 's!PREFIX =.*!PREFIX = ${prefix}!' < settings.pro > settings.pro.new
68         mv settings.pro.new settings.pro
69 }
70
71 do_install() {
72         oe_runmake INSTALL_ROOT=${D} install
73 }
74