1 ################################################################################
5 ################################################################################
8 SOX_SITE
= http
://downloads.sourceforge.net
/project
/sox
/sox
/$(SOX_VERSION
)
9 SOX_SOURCE
= sox-
$(SOX_VERSION
).
tar.bz2
10 SOX_DEPENDENCIES
= host-pkgconf
11 SOX_CONF_OPTS
= --with-distro
="Buildroot" --without-ffmpeg
--disable-gomp \
12 $(if
$(BR2_TOOLCHAIN_HAS_SSP
),,--disable-stack-protector
)
13 SOX_LICENSE
= GPLv2
+ (sox binary
), LGPLv2.1
+ (libraries
)
14 SOX_LICENSE_FILES
= LICENSE.GPL LICENSE.LGPL
16 # MIPS Codescape toolchains don't support stack-smashing protection
17 # despite of using glibc.
18 ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
)$(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
),y
)
19 SOX_CONF_OPTS
+= --disable-stack-protector
22 ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM
),y
)
23 SOX_DEPENDENCIES
+= alsa-lib
25 SOX_CONF_OPTS
+= --without-alsa
28 ifeq ($(BR2_PACKAGE_FILE
),y
)
29 SOX_DEPENDENCIES
+= file
31 SOX_CONF_OPTS
+= --without-magic
34 ifeq ($(BR2_PACKAGE_FLAC
),y
)
35 SOX_DEPENDENCIES
+= flac
37 SOX_CONF_OPTS
+= --without-flac
40 ifeq ($(BR2_PACKAGE_LAME
),y
)
41 SOX_DEPENDENCIES
+= lame
43 SOX_CONF_OPTS
+= --without-lame
46 ifeq ($(BR2_PACKAGE_LIBAO
),y
)
47 SOX_DEPENDENCIES
+= libao
49 SOX_CONF_OPTS
+= --without-ao
52 ifeq ($(BR2_PACKAGE_LIBID3TAG
),y
)
53 SOX_DEPENDENCIES
+= libid3tag
55 SOX_CONF_OPTS
+= --without-id3tag
58 ifeq ($(BR2_PACKAGE_LIBMAD
),y
)
59 SOX_DEPENDENCIES
+= libmad
61 SOX_CONF_OPTS
+= --without-mad
64 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
65 SOX_DEPENDENCIES
+= libpng
67 SOX_CONF_OPTS
+= --without-png
70 ifeq ($(BR2_PACKAGE_LIBSNDFILE
),y
)
71 SOX_DEPENDENCIES
+= libsndfile
73 SOX_CONF_OPTS
+= --without-sndfile
76 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
77 SOX_DEPENDENCIES
+= libvorbis
79 SOX_CONF_OPTS
+= --without-oggvorbis
82 ifeq ($(BR2_PACKAGE_OPENCORE_AMR
),y
)
83 SOX_DEPENDENCIES
+= opencore-amr
85 SOX_CONF_OPTS
+= --without-amrwb
--without-amrnb
88 ifeq ($(BR2_PACKAGE_OPUSFILE
),y
)
89 SOX_DEPENDENCIES
+= opusfile
91 SOX_CONF_OPTS
+= --without-opus
94 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
95 SOX_DEPENDENCIES
+= pulseaudio
97 SOX_CONF_OPTS
+= --without-pulseaudio
100 ifeq ($(BR2_PACKAGE_TWOLAME
),y
)
101 SOX_DEPENDENCIES
+= twolame
103 SOX_CONF_OPTS
+= --without-twolame
106 ifeq ($(BR2_PACKAGE_WAVPACK
),y
)
107 SOX_DEPENDENCIES
+= wavpack
109 SOX_CONF_OPTS
+= --without-wavpack
112 $(eval
$(autotools-package
))