summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/libsamplerate
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2016-11-02 17:39:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-06 23:35:36 +0000
commit681d81177666314d7742654ac9537b34b39cd5b6 (patch)
tree09d6b11b3de05c5eb596b14e6dac1f2c3cb60e10 /meta/recipes-multimedia/libsamplerate
parent1a2ebec99a11b8ee758924e832c2fa99103cda8c (diff)
downloadpoky-681d81177666314d7742654ac9537b34b39cd5b6.tar.gz
libsamplerate0: clean up dependencies
The flac dependency was completely bogus. Flac isn't used at all. FFTW is only used by tests, so we don't need to provide a packageconfig for that. ALSA is only used by example code that isn't part of the packaged files, so even if ALSA is enabled, it doesn't affect the build result. Nevertheless, I prefer to disable it explicitly to be extra sure. --disable-alsa resulted in a warning about an unsupported configure option, although by some magic it seemed to actually work as expected. A patch is added to get rid of that warning. (From OE-Core rev: c7cb0ce17dc2ec3999f26d594e755c8fb9609cee) Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libsamplerate')
-rw-r--r--meta/recipes-multimedia/libsamplerate/libsamplerate0/0001-configure.ac-improve-alsa-handling.patch62
-rw-r--r--meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb11
2 files changed, 70 insertions, 3 deletions
diff --git a/meta/recipes-multimedia/libsamplerate/libsamplerate0/0001-configure.ac-improve-alsa-handling.patch b/meta/recipes-multimedia/libsamplerate/libsamplerate0/0001-configure.ac-improve-alsa-handling.patch
new file mode 100644
index 0000000000..d19b514e6b
--- /dev/null
+++ b/meta/recipes-multimedia/libsamplerate/libsamplerate0/0001-configure.ac-improve-alsa-handling.patch
@@ -0,0 +1,62 @@
1From 957ebce3837588f71016e37ffaf9aad0a9d41cec Mon Sep 17 00:00:00 2001
2From: Tanu Kaskinen <tanuk@iki.fi>
3Date: Fri, 23 Sep 2016 12:02:06 +0300
4Subject: [PATCH] configure.ac: improve alsa handling
5
6Three improvements:
7
81) "--enable-alsa" or "--disable-alsa" caused a warning about an
9unsupported configure option, because AC_ARG_ENABLE was not used.
10
112) If alsa was disabled, the "Have ALSA" item in the summary would print
12an empty string instead of "no".
13
143) If "--enable-alsa" was passed to configure, but the headers were not
15found, configure would still succeed (with alsa disabled). It's better
16to fail and abort configure if a feature that was explicitly requested
17can't be enabled.
18
19Upstream-Status: Submitted [sent to src@mega-nerd.com]
20
21Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
22---
23 configure.ac | 9 ++++++++-
24 1 file changed, 8 insertions(+), 1 deletion(-)
25
26diff --git a/configure.ac b/configure.ac
27index 474c6ab..bad597e 100644
28--- a/configure.ac
29+++ b/configure.ac
30@@ -101,6 +101,9 @@ AC_ARG_ENABLE(cpu-clip,
31 AC_HELP_STRING([--disable-cpu-clip], [disable tricky cpu specific clipper]),
32 ac_arg_cpu_clip="N", ac_arg_cpu_clip="Y")
33
34+AC_ARG_ENABLE(alsa,
35+ AC_HELP_STRING([--disable-alsa], [disable ALSA support in the varispeed-play example program]))
36+
37 #====================================================================================
38 # Check types and their sizes.
39
40@@ -194,6 +197,10 @@ if test x$enable_alsa != xno ; then
41 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
42 ALSA_LIBS="-lasound"
43 enable_alsa=yes
44+ elif test x$enable_alsa = xyes ; then
45+ AC_MSG_ERROR(["ALSA headers not found"])
46+ else
47+ enable_alsa=no
48 fi
49 fi
50
51@@ -340,7 +347,7 @@ AC_MSG_RESULT([
52 Have FFTW : ................... ${ac_cv_fftw3}])
53
54 AC_MSG_RESULT([ Have libsndfile : ............. ${ac_cv_sndfile}])
55-AC_MSG_RESULT([ Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
56+AC_MSG_RESULT([ Have ALSA : ................... ${enable_alsa}
57 ])
58
59 AC_MSG_RESULT([ Installation directories :
60--
612.9.3
62
diff --git a/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb b/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb
index a24b8c7abc..5473bffca4 100644
--- a/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb
+++ b/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.1.9.bb
@@ -4,10 +4,12 @@ SECTION = "libs"
4LICENSE = "BSD-2-Clause" 4LICENSE = "BSD-2-Clause"
5LIC_FILES_CHKSUM = "file://COPYING;md5=336d6faf40fb600bafb0061f4052f1f4 \ 5LIC_FILES_CHKSUM = "file://COPYING;md5=336d6faf40fb600bafb0061f4052f1f4 \
6 file://src/samplerate.c;beginline=1;endline=7;md5=5b6982a8c2811c7312c13cccbf55f55e" 6 file://src/samplerate.c;beginline=1;endline=7;md5=5b6982a8c2811c7312c13cccbf55f55e"
7DEPENDS = "flac libsndfile1" 7DEPENDS = "libsndfile1"
8PR = "r1" 8PR = "r1"
9 9
10SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz" 10SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
11 file://0001-configure.ac-improve-alsa-handling.patch \
12"
11 13
12SRC_URI[md5sum] = "2b78ae9fe63b36b9fbb6267fad93f259" 14SRC_URI[md5sum] = "2b78ae9fe63b36b9fbb6267fad93f259"
13SRC_URI[sha256sum] = "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1" 15SRC_URI[sha256sum] = "0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1"
@@ -18,4 +20,7 @@ S = "${WORKDIR}/libsamplerate-${PV}"
18 20
19inherit autotools pkgconfig 21inherit autotools pkgconfig
20 22
21PACKAGECONFIG[fftw] = ",--disable-fftw,fftw" 23# FFTW and ALSA are only used in tests and examples, so they don't affect
24# normal builds. It should be safe to ignore these, but explicitly disabling
25# them adds some extra certainty that builds are deterministic.
26EXTRA_OECONF = "--disable-fftw --disable-alsa"