1 SUMMARY = "ALSA Plugins"
2 HOMEPAGE = "http://alsa-project.org"
3 BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
6 # The primary license of alsa-plugins is LGPLv2.1.
8 # m4/attributes.m4 is licensed under GPLv2+. m4/attributes.m4 is part of the
9 # build system, and doesn't affect the licensing of the build result.
11 # The samplerate plugin source code is licensed under GPLv2+ to be consistent
12 # with the libsamplerate license. However, if the licensee has a commercial
13 # license for libsamplerate, the samplerate plugin may be used under the terms
14 # of LGPLv2.1 like the rest of the plugins.
15 LICENSE = "LGPLv2.1 & GPLv2+"
17 file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \
18 file://COPYING.GPL;md5=59530bdf33659b29e73d4adb9f9f6552 \
19 file://m4/attributes.m4;endline=33;md5=b25958da44c02231e3641f1bccef53eb \
20 file://rate/rate_samplerate.c;endline=35;md5=fd77bce85f4a338c0e8ab18430b69fae \
24 ftp://ftp.alsa-project.org http://www.mirrorservice.org/sites/ftp.alsa-project.org \n \
27 SRC_URI = "ftp://ftp.alsa-project.org/pub/plugins/${BP}.tar.bz2"
28 SRC_URI[md5sum] = "8387279e99feeb2ecffaac5f293223d7"
29 SRC_URI[sha256sum] = "6f1d31ebe3b1fa1cc8dade60b7bed1cb2583ac998167002d350dc0a5e3e40c13"
33 inherit autotools pkgconfig
38 ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)} \
40 PACKAGECONFIG[avcodec] = "--enable-avcodec,--disable-avcodec,libav"
41 PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
42 PACKAGECONFIG[maemo-plugin] = "--enable-maemo-plugin,--disable-maemo-plugin"
43 PACKAGECONFIG[maemo-resource-manager] = "--enable-maemo-resource-manager,--disable-maemo-resource-manager,dbus"
44 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
45 PACKAGECONFIG[samplerate] = "--enable-samplerate,--disable-samplerate,libsamplerate0"
46 PACKAGECONFIG[speexdsp] = "--with-speex=lib,--with-speex=no,speexdsp"
48 PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'alsa-plugins-pulseaudio-conf', '', d)}"
50 PACKAGES_DYNAMIC = "^libasound-module-.*"
52 # The alsa-plugins package doesn't itself contain anything, it just depends on
54 ALLOW_EMPTY_${PN} = "1"
57 rm ${D}${libdir}/alsa-lib/*.la
59 # We use the example as is, so just drop the .example suffix.
60 if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then
61 mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf
65 python populate_packages_prepend() {
66 plugindir = d.expand('${libdir}/alsa-lib/')
67 packages = " ".join(do_split_packages(d, plugindir, '^libasound_module_(.*)\.so$', 'libasound-module-%s', 'Alsa plugin for %s', extra_depends=''))
68 d.setVar("RDEPENDS_alsa-plugins", packages)
71 # The rate plugins create some symlinks. For example, the samplerate plugin
72 # creates these links to the main plugin file:
74 # libasound_module_rate_samplerate_best.so
75 # libasound_module_rate_samplerate_linear.so
76 # libasound_module_rate_samplerate_medium.so
77 # libasound_module_rate_samplerate_order.so
79 # The other rate plugins create similar links. We have to add the links to
80 # FILES manually, because do_split_packages() skips the links (which is good,
81 # because we wouldn't want do_split_packages() to create separate packages for
84 # The symlinks cause QA errors, because usually it's a bug if a non
85 # -dev/-dbg/-nativesdk package contains links to .so files, but in this case
86 # the errors are false positives, so we disable the QA checks.
87 FILES_${MLPREFIX}libasound-module-rate-lavcrate += "${libdir}/alsa-lib/*rate_lavcrate_*.so"
88 FILES_${MLPREFIX}libasound-module-rate-samplerate += "${libdir}/alsa-lib/*rate_samplerate_*.so"
89 FILES_${MLPREFIX}libasound-module-rate-speexrate += "${libdir}/alsa-lib/*rate_speexrate_*.so"
90 INSANE_SKIP_${MLPREFIX}libasound-module-rate-lavcrate = "dev-so"
91 INSANE_SKIP_${MLPREFIX}libasound-module-rate-samplerate = "dev-so"
92 INSANE_SKIP_${MLPREFIX}libasound-module-rate-speexrate = "dev-so"
94 # 50-pulseaudio.conf defines a device named "pulse" that applications can use
95 # if they explicitly want to use the PulseAudio plugin.
96 # 99-pulseaudio-default.conf configures the "default" device to use the
98 FILES_${PN}-pulseaudio-conf += "\
99 ${datadir}/alsa/alsa.conf.d/50-pulseaudio.conf \
100 ${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf \
103 RDEPENDS_${PN}-pulseaudio-conf += "\
104 libasound-module-conf-pulse \
105 libasound-module-ctl-pulse \
106 libasound-module-pcm-pulse \