Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / gstreamer / gst-plugins_0.8.6.oe
1 LICENSE = GPL
2 DESCRIPTION = "Plugins for GStreamer"
3 SECTION = "x11/libs"
4 PRIORITY = "optional"
5 MAINTAINER = "Phil Blundell <pb@handhelds.org>"
6 PR = "r0"
7
8 DEPENDS = "gstreamer libmikmod libmad libogg tremor libvorbis libid3tag gpe-soundserver gconf"
9
10 SRC_URI = "http://gstreamer.freedesktop.org/src/gst-plugins/gst-plugins-${PV}.tar.bz2 \
11            file://try-esdsink.patch;patch=1 \
12            file://lame-autoconf.patch;patch=1"
13
14 EXTRA_OECONF = "--disable-docs-build --disable-dependency-tracking --disable-aalib --disable-arts \
15                 --disable-artsc --disable-libfame --disable-sdl --disable-shout2 \
16                 --disable-gnome_vfs "
17
18 inherit autotools pkgconfig gconf
19
20 acpaths = "-I ${S}/common/m4 -I ${S}/m4"
21
22 LIBV = "0.8"
23
24 plugin_postinst() {
25         if [ x"$D" = "x" ]; then
26                 gst-register --gst-registry=/var/cache/gstreamer-0.8/registry.xml
27         fi
28 }
29
30 python populate_packages_prepend () {
31         gst_libdir = oe.data.expand('${libdir}/gstreamer-${LIBV}', d)
32         postinst = oe.data.getVar('plugin_postinst', d, 1)
33
34         do_split_packages(d, gst_libdir, '^libgst(.*)\.so$', 'gst-plugin-%s', 'GStreamer plugin for %s', postinst=postinst)
35         do_split_packages(d, gst_libdir, '^libgst(.*)\.l?a$', 'gst-plugin-%s-dev', 'GStreamer plugin for %s (development files)')
36 }
37
38 do_stage() {
39         autotools_stage_includes
40         while read a b; do
41                 oe_libinstall -C gst-libs/gst/$a -so libgst$b ${STAGING_LIBDIR}
42         done <<EOF
43 . interfaces-0.8
44 audio audio
45 audio audiofilter
46 gconf gconf-0.8
47 idct idct
48 media-info media-info-0.8
49 play play-0.8
50 resample resample
51 riff riff
52 video video
53 xwindowlistener xwindowlistener
54 EOF
55 }