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