blob: 95c94795883ea60bed0fcea2d87014c3635676ef [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Implementation of XDG Sound Theme and Name Specifications"
2DESCRIPTION = "Libcanberra is an implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops."
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "LGPL-2.1-or-later"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
5 file://src/canberra.h;beginline=7;endline=24;md5=c616c687cf8da540a14f917e0d23ab03"
6
7DEPENDS = "libtool libvorbis"
8
9inherit autotools gtk-doc
10
11SRC_URI = " \
12 http://0pointer.de/lennart/projects/${BPN}/${BPN}-${PV}.tar.xz \
13 file://0001-build-gtk-and-gtk3-version-for-canberra_gtk_play.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch \
Andrew Geissler5082cc72023-09-11 08:41:39 -040015 file://0001-remove-dropped-templates.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016"
17SRC_URI[md5sum] = "34cb7e4430afaf6f447c4ebdb9b42072"
18SRC_URI[sha256sum] = "c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72"
19
20EXTRA_OECONF = "\
21 --enable-null \
22 --disable-oss \
23 --disable-tdb \
24 --disable-lynx \
25"
26
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk gtk3', '', d)} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029"
30PACKAGECONFIG[alsa] = "--enable-alsa, --disable-alsa, alsa-lib"
31PACKAGECONFIG[pulseaudio] = "--enable-pulse, --disable-pulse, pulseaudio"
32PACKAGECONFIG[gstreamer] = "--enable-gstreamer, --disable-gstreamer, gstreamer1.0"
33PACKAGECONFIG[gtk] = "--enable-gtk, --disable-gtk, gtk+"
34PACKAGECONFIG[gtk3] = "--enable-gtk3, --disable-gtk3, gtk+3"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036python populate_packages:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050037 plugindir = d.expand('${libdir}/${BPN}-${PV}/')
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000038 do_split_packages(d, plugindir, r'^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
39 do_split_packages(d, plugindir, r'^libcanberra-(.*)\.la$', 'libcanberra-%s', '%s support library', extra_depends='' )
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040}
41
42PACKAGES =+ "${PN}-gnome ${PN}-gtk2 ${PN}-gtk3 ${PN}-systemd"
43PACKAGES_DYNAMIC += "^libcanberra-.*"
44
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN} = "${bindir}/ ${libdir}/${BPN}.so.*"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050046
Patrick Williams213cb262021-08-07 19:21:33 -050047FILES:${PN}-dev += "${datadir}/vala/vapi ${libdir}/*/modules/*.la ${libdir}/*/*.la"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050048
Patrick Williams213cb262021-08-07 19:21:33 -050049FILES:${PN}-dbg += "${libdir}/${BPN}-${PV}/.debug ${libdir}/gtk-*/modules/.debug"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050050
Patrick Williams213cb262021-08-07 19:21:33 -050051FILES:${PN}-gtk2 = "${libdir}/${BPN}-gtk.so.* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050052 ${libdir}/gtk-2.0/modules/*.so \
53 ${bindir}/canberra-gtk-play"
54
55# -gtk3 ships a symlink to a .so
Patrick Williams213cb262021-08-07 19:21:33 -050056INSANE_SKIP:${PN}-gtk3 = "dev-so"
57FILES:${PN}-gtk3 = "${libdir}/${BPN}-gtk3.so.* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050058 ${libdir}/gtk-3.0/modules/*.so \
59 ${bindir}/canberra-gtk3-play"
60
Patrick Williams213cb262021-08-07 19:21:33 -050061FILES:${PN}-gnome = "${libdir}/gnome-settings-daemon-3.0/ \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050062 ${datadir}/gdm/ ${datadir}/gnome/"
63
Patrick Williams213cb262021-08-07 19:21:33 -050064FILES:${PN}-systemd = "${systemd_unitdir}/system/*.service"