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