aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pulseaudio/libcanberra_0.17.bb
blob: 0e6f06abc88778fd5cf3fe370c745d8d298673ec (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
56
57
58
59
60
61
62
63
64
65
66
67
DESCRIPTION = "Libcanberra is an implementation of the XDG Sound Theme and Name \
Specifications, for generating event sounds on free desktops."
LICENSE = "LGPL"
DEPENDS = "alsa-lib gstreamer gtk+ libtool libvorbis"
SECTION = "libs/multimedia"
AUTHOR = "Lennart Poettering"
HOMEPAGE = "http://0pointer.de/lennart/projects/libcanberra"
PR = "r4"

inherit autotools_stage vala
AUTOTOOLS_STAGE_PKGCONFIG = "1"

SRC_URI = "http://0pointer.de/lennart/projects/libcanberra/libcanberra-${PV}.tar.gz \
           file://libcanberra-increase-buffer-size.patch"

EXTRA_OECONF = "\
  --enable-alsa \
  --enable-gstreamer \
  --enable-gtk \
  --enable-multi \
  --enable-null \
  --disable-oss \
# enable pulse again when pulseaudio >= 0.9.11 is the default in OE
  --disable-pulse \
  --disable-tdb \
"

# This needs autoconf 2.62, which isn't used by any distro in OE atm
do_configure() {
	gnu-configize --force
	oe_runconf
}

# TODO: Test more fine granular version
#OE_LT_RPATH_ALLOW=":${libdir}/${P}:"
OE_LT_RPATH_ALLOW = "any"
OE_LT_RPATH_ALLOW[export] = "1"

python populate_packages_prepend() {
	plugindir = bb.data.expand('${libdir}/${P}/', d)
	do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
}

PACKAGES =+ "${PN}-gtk"

PACKAGES_DYNAMIC = "libcanberra-*"

FILES_${PN}-gtk = "\
  ${sysconfdir}/gconf \
  ${bindir}/* \
  ${libdir}/libcanberra-gtk.so.* \
  ${libdir}/gtk-2.0/modules/* \
  ${datadir}/gnome \
  ${datadir}//gdm \
"

FILES_${PN}-dev += "\
  ${libdir}/${P}/*.la \
"

FILES_${PN}-dbg += "\
  ${libdir}/gtk-2.0/modules/.debug \
  ${libdir}/${P}/.debug \
"

SRC_URI[md5sum] = "d1f5c5956d65d289566197e620be1a2e"
SRC_URI[sha256sum] = "5f41fa3cc992721709d3761601dcd9d57e4ec26f113e115005feb7aab9920257"