package/aubio: add jack2 optional dependency
authorRomain Naour <romain.naour@gmail.com>
Sat, 3 Dec 2016 12:17:37 +0000 (13:17 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 4 Dec 2016 15:22:11 +0000 (16:22 +0100)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/aubio/aubio.mk

index ed00088a6af69efffb3cd42e47c6d3e247814026..7aac6e547a77f886a2cfbe8be59ef08eb7c220cd 100644 (file)
@@ -15,7 +15,6 @@ AUBIO_CONF_OPTS = \
        --disable-docs \
        --disable-atlas \
        --disable-avcodec \
-       --disable-jack \
        --disable-fftw3 \
        --disable-fftw3f
 
@@ -33,4 +32,11 @@ else
 AUBIO_CONF_OPTS += --disable-samplerate
 endif
 
+ifeq ($(BR2_PACKAGE_JACK2),y)
+AUBIO_DEPENDENCIES += jack2
+AUBIO_CONF_OPTS += --enable-jack
+else
+AUBIO_CONF_OPTS += --disable-jack
+endif
+
 $(eval $(waf-package))