xref: /OK3568_Linux_fs/buildroot/package/aubio/aubio.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# aubio
4#
5################################################################################
6
7AUBIO_VERSION = 0.4.9
8AUBIO_SITE = https://aubio.org/pub
9AUBIO_SOURCE = aubio-$(AUBIO_VERSION).tar.bz2
10AUBIO_LICENSE = GPL-3.0+
11AUBIO_LICENSE_FILES = COPYING
12AUBIO_INSTALL_STAGING = YES
13
14AUBIO_CONF_OPTS = \
15	--disable-docs \
16	--disable-atlas
17
18# Add --notests for each build step to avoid running unit tests on the
19# build machine.
20AUBIO_WAF_OPTS = --notests
21
22ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
23AUBIO_DEPENDENCIES += libsndfile
24AUBIO_CONF_OPTS += --enable-sndfile
25else
26AUBIO_CONF_OPTS += --disable-sndfile
27endif
28
29# Could not compile aubio in double precision mode with libsamplerate
30ifeq ($(BR2_PACKAGE_LIBSAMPLERATE):$(BR2_PACKAGE_FFTW_DOUBLE),y:)
31AUBIO_DEPENDENCIES += libsamplerate
32AUBIO_CONF_OPTS += --enable-samplerate
33else
34AUBIO_CONF_OPTS += --disable-samplerate
35endif
36
37ifeq ($(BR2_PACKAGE_JACK2),y)
38AUBIO_DEPENDENCIES += jack2
39AUBIO_CONF_OPTS += --enable-jack
40else
41AUBIO_CONF_OPTS += --disable-jack
42endif
43
44# fftw3 require double otherwise it will look for fftw3f
45ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
46AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
47AUBIO_DEPENDENCIES += fftw-double
48else ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
49AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
50AUBIO_DEPENDENCIES += fftw-single
51else
52AUBIO_CONF_OPTS += --disable-fftw3
53endif
54
55ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y)
56AUBIO_DEPENDENCIES += ffmpeg
57AUBIO_CONF_OPTS += --enable-avcodec
58else
59AUBIO_CONF_OPTS += --disable-avcodec
60endif
61
62$(eval $(waf-package))
63