Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / mythtv / mythtv_cvs.oe
1 DESCRIPTION = "A full featured personal video recorder system."
2 MAINTAINER = "Michael 'Mickey' Lauer"
3 SECTION = "x11/multimedia"
4 PR = "r4"
5 PV = "0.16+cvs${CVSDATE}"
6
7 DEFAULT_PREFERENCE = "-1"
8
9 SRC_URI = "cvs://mythtv:mythtv@cvs.mythtv.org/var/lib/mythcvs;module=mythtv;method=pserver \
10         http://www.ivor.it/mythtv/epiaosd.tar.gz \
11         file://settings.pro \
12         file://prefix-etc.patch;patch=1"
13 S = "${WORKDIR}/mythtv"
14
15 DEPENDS = "xinerama qt-x11-free lame libxv libxxf86vm libxvmc lirc"
16 RDEPENDS = "qt-x11-plugins"
17
18 PACKAGES =+ "libmythavcodec libmythavformat libmythtv mythtv-backend"
19 FILES_libmythavcodec = "${libdir}/libmythavcodec-*.so.*"
20 FILES_libmythavformat = "${libdir}/libmythavformat-*.so.*"
21 FILES_libmythtv = "${libdir}/libmythtv-*.so.*"
22 FILES_mythtv-backend = "${bindir}/mythbackend ${bindir}/mythtranscode ${bindir}/mythfilldatabase ${bindir}/mythcommflag"
23
24 inherit qmake qt3x11
25
26 QMAKE_PROFILES = "mythtv.pro"
27
28 # there is a -march=586 somewhere in the source tree
29 COMPATIBLE_HOST = 'i.86.*-linux'
30
31 def mythtv_arch(d):
32         import oe, re
33         arch = oe.data.getVar('TARGET_ARCH', d, 1)
34         if re.match("^i.86$", arch):
35                 arch = "x86"
36         elif arch == "x86_64":
37                 arch = "x86"
38         elif arch == "arm":
39                 arch = "armv4l"
40         return arch
41
42 MYTHTV_ARCH := "${@mythtv_arch(d)}"
43
44 do_configure_prepend() {
45 # it's not autotools anyway, so we call ./configure directly
46         find . -name "Makefile"|xargs rm -f
47         ./configure     --prefix=/usr           \
48                         --mandir=/usr/man       \
49                         --disable-mp3lame       \
50                         --enable-vorbis         \
51                         --disable-faad          \
52                         --disable-faadbin       \
53                         --disable-faac          \
54                         --disable-mingw32       \
55                         --enable-a52            \
56                         --disable-a52bin        \
57                         --enable-pp             \
58                         --enable-shared-pp      \
59                         --enable-shared         \
60                         --disable-amr_nb        \
61                         --disable-amr_nb-fixed  \
62                         --disable-sunmlib       \
63                                                 \
64                         --cpu=${MYTHTV_ARCH}    \
65                         --enable-mmx            \
66                         --disable-altivec       \
67                         --enable-v4l            \
68                         --enable-audio-oss      \
69                         --disable-audio-beos    \
70                         --enable-dv1394         \
71                         --enable-network        \
72                         --enable-zlib           \
73                         --enable-simple_idct    \
74                         --disable-vhook         \
75                         --disable-mpegaudio-hp  \
76                         --enable-ffserver       \
77                         --enable-ffplay         \
78                         --enable-risky
79
80         install -m 0644 ${WORKDIR}/settings.pro ${S}/
81
82         cp -a ${WORKDIR}/themes/epiaosd ${S}/themes/
83 }
84
85 do_install() {
86         oe_runmake INSTALL_ROOT=${D} install
87 }
88