summaryrefslogtreecommitdiff
path: root/gstreamer/gst-plugins_0.8.4.oe
blob: ac310d79c94ed2a68dbad07f4a4c491253714f33 (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
DESCRIPTION = "Plugins for GStreamer"
SECTION = "x11/libs"
PRIORITY = "optional"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
PR = "r2"

DEPENDS = "gstreamer libmikmod libmad libogg tremor libvorbis libid3tag gpe-soundserver gconf"

SRC_URI = "http://gstreamer.freedesktop.org/src/gst-plugins/gst-plugins-${PV}.tar.bz2 \
	   file://ivorbis.patch;patch=1 \
	   file://try-esdsink.patch;patch=1 \
	   file://lame-autoconf.patch;patch=1"

EXTRA_OECONF = "--disable-docs-build --disable-dependency-tracking --disable-aalib --disable-arts \
                --disable-artsc --disable-libfame --disable-sdl --disable-shout2 \
		--disable-gnome_vfs "

inherit autotools pkgconfig gconf

acpaths = "-I ${S}/common/m4 -I ${S}/m4"

LIBV = "0.8"

plugin_postinst() {
	if [ x"$D" = "x" ]; then
		gst-register --gst-registry=/var/cache/gstreamer-0.8/registry.xml
	fi
}

python populate_packages_prepend () {
	gst_libdir = oe.data.expand('${libdir}/gstreamer-${LIBV}', d)
	postinst = oe.data.getVar('plugin_postinst', d, 1)

	do_split_packages(d, gst_libdir, '^libgst(.*)\.so$', 'gst-plugin-%s', 'GStreamer plugin for %s', postinst=postinst)
	do_split_packages(d, gst_libdir, '^libgst(.*)\.l?a$', 'gst-plugin-%s-dev', 'GStreamer plugin for %s (development files)')
}

do_stage() {
	autotools_stage_includes
	while read a b; do
		oe_libinstall -C gst-libs/gst/$a -so libgst$b ${STAGING_LIBDIR}
	done <<EOF
. interfaces-0.8
audio audio
audio audiofilter
gconf gconf-0.8
idct idct
media-info media-info-0.8
play play-0.8
resample resample
riff riff
video video
xwindowlistener xwindowlistener
EOF
}