2016-12-03 13:17:34 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# aubio
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-04-17 19:33:22 +02:00
|
|
|
AUBIO_VERSION = 0.4.5
|
2016-12-03 13:17:34 +01:00
|
|
|
AUBIO_SITE = https://aubio.org/pub
|
|
|
|
AUBIO_SOURCE = aubio-$(AUBIO_VERSION).tar.bz2
|
2017-03-30 15:43:33 +02:00
|
|
|
AUBIO_LICENSE = GPL-3.0+
|
2016-12-03 13:17:34 +01:00
|
|
|
AUBIO_LICENSE_FILES = COPYING
|
|
|
|
AUBIO_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
AUBIO_CONF_OPTS = \
|
|
|
|
--disable-docs \
|
2016-12-03 13:17:39 +01:00
|
|
|
--disable-atlas
|
2016-12-03 13:17:34 +01:00
|
|
|
|
2016-12-06 20:49:09 +01:00
|
|
|
# Add --notests for each build step to avoid running unit tests on the
|
|
|
|
# build machine.
|
|
|
|
AUBIO_WAF_OPTS = --notests
|
|
|
|
|
2016-12-03 13:17:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
|
|
|
AUBIO_DEPENDENCIES += libsndfile
|
|
|
|
AUBIO_CONF_OPTS += --enable-sndfile
|
|
|
|
else
|
|
|
|
AUBIO_CONF_OPTS += --disable-sndfile
|
|
|
|
endif
|
|
|
|
|
2017-04-17 19:33:22 +02:00
|
|
|
# Could not compile aubio in double precision mode with libsamplerate
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE)$(BR2_PACKAGE_FFTW_PRECISION_SINGLE),yy)
|
2016-12-03 13:17:36 +01:00
|
|
|
AUBIO_DEPENDENCIES += libsamplerate
|
|
|
|
AUBIO_CONF_OPTS += --enable-samplerate
|
|
|
|
else
|
|
|
|
AUBIO_CONF_OPTS += --disable-samplerate
|
|
|
|
endif
|
|
|
|
|
2016-12-03 13:17:37 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JACK2),y)
|
|
|
|
AUBIO_DEPENDENCIES += jack2
|
|
|
|
AUBIO_CONF_OPTS += --enable-jack
|
|
|
|
else
|
|
|
|
AUBIO_CONF_OPTS += --disable-jack
|
|
|
|
endif
|
|
|
|
|
2016-12-03 13:17:38 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFTW),y)
|
|
|
|
AUBIO_DEPENDENCIES += fftw
|
|
|
|
# fftw3 require double otherwise it will look for fftw3f
|
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_PRECISION_DOUBLE),y)
|
|
|
|
AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
|
|
|
|
else ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
|
|
|
|
AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
|
|
|
|
endif
|
|
|
|
else # !BR2_PACKAGE_FFTW
|
|
|
|
AUBIO_CONF_OPTS += --disable-fftw3
|
|
|
|
endif
|
|
|
|
|
2016-12-03 13:17:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y)
|
|
|
|
AUBIO_DEPENDENCIES += ffmpeg
|
|
|
|
AUBIO_CONF_OPTS += --enable-avcodec
|
|
|
|
else
|
|
|
|
AUBIO_CONF_OPTS += --disable-avcodec
|
|
|
|
endif
|
|
|
|
|
2016-12-03 13:17:34 +01:00
|
|
|
$(eval $(waf-package))
|