aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2017-12-20 18:02:51 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-12-20 21:37:18 +0100
commit5b85c6a038cc210355d8d5715cdf6fa73d18e8ac (patch)
treed0714f563ad2b8c2579b4a3ca1705fe60f7cdb1f
parent8a560563f94e2aa2053db1cd41aa6c74ece1957c (diff)
downloadbuildroot-5b85c6a038cc210355d8d5715cdf6fa73d18e8ac.tar.gz
buildroot-5b85c6a038cc210355d8d5715cdf6fa73d18e8ac.tar.bz2
pulseaudio: fix libsamplerate dependency
The (deprecated) libsamplerate support is not enabled unless --enable-samplerate is passed to configure. Fix this. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pulseaudio/pulseaudio.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/pulseaudio/pulseaudio.mk b/package/pulseaudio/pulseaudio.mk
index 3863557881..13fcec52a3 100644
--- a/package/pulseaudio/pulseaudio.mk
+++ b/package/pulseaudio/pulseaudio.mk
@@ -17,7 +17,6 @@ PULSEAUDIO_CONF_OPTS = \
PULSEAUDIO_DEPENDENCIES = \
host-pkgconf libtool libsndfile speex host-intltool \
- $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \
$(if $(BR2_PACKAGE_LIBGLIB2),libglib2) \
$(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
$(if $(BR2_PACKAGE_DBUS),dbus) \
@@ -25,6 +24,13 @@ PULSEAUDIO_DEPENDENCIES = \
$(if $(BR2_PACKAGE_FFTW),fftw) \
$(if $(BR2_PACKAGE_SYSTEMD),systemd)
+ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
+PULSEAUDIO_CONF_OPTS += --enable-samplerate
+PULSEAUDIO_DEPENDENCIES += libsamplerate
+else
+PULSEAUDIO_CONF_OPTS += --disable-samplerate
+endif
+
ifeq ($(BR2_PACKAGE_GDBM),y)
PULSEAUDIO_CONF_OPTS += --with-database=gdbm
PULSEAUDIO_DEPENDENCIES += gdbm