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 ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM
),y
)
17 SOX_DEPENDENCIES
+= alsa-lib
19 SOX_CONF_OPTS
+= --without-alsa
22 ifeq ($(BR2_PACKAGE_FILE
),y
)
23 SOX_DEPENDENCIES
+= file
25 SOX_CONF_OPTS
+= --without-magic
28 ifeq ($(BR2_PACKAGE_FLAC
),y
)
29 SOX_DEPENDENCIES
+= flac
31 SOX_CONF_OPTS
+= --without-flac
34 ifeq ($(BR2_PACKAGE_LAME
),y
)
35 SOX_DEPENDENCIES
+= lame
37 SOX_CONF_OPTS
+= --without-lame
40 ifeq ($(BR2_PACKAGE_LIBAO
),y
)
41 SOX_DEPENDENCIES
+= libao
43 SOX_CONF_OPTS
+= --without-ao
46 ifeq ($(BR2_PACKAGE_LIBID3TAG
),y
)
47 SOX_DEPENDENCIES
+= libid3tag
49 SOX_CONF_OPTS
+= --without-id3tag
52 ifeq ($(BR2_PACKAGE_LIBMAD
),y
)
53 SOX_DEPENDENCIES
+= libmad
55 SOX_CONF_OPTS
+= --without-mad
58 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
59 SOX_DEPENDENCIES
+= libpng
61 SOX_CONF_OPTS
+= --without-png
64 ifeq ($(BR2_PACKAGE_LIBSNDFILE
),y
)
65 SOX_DEPENDENCIES
+= libsndfile
67 SOX_CONF_OPTS
+= --without-sndfile
70 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
71 SOX_DEPENDENCIES
+= libvorbis
73 SOX_CONF_OPTS
+= --without-oggvorbis
76 ifeq ($(BR2_PACKAGE_OPENCORE_AMR
),y
)
77 SOX_DEPENDENCIES
+= opencore-amr
79 SOX_CONF_OPTS
+= --without-amrwb
--without-amrnb
82 ifeq ($(BR2_PACKAGE_OPUSFILE
),y
)
83 SOX_DEPENDENCIES
+= opusfile
85 SOX_CONF_OPTS
+= --without-opus
88 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
89 SOX_DEPENDENCIES
+= pulseaudio
91 SOX_CONF_OPTS
+= --without-pulseaudio
94 ifeq ($(BR2_PACKAGE_TWOLAME
),y
)
95 SOX_DEPENDENCIES
+= twolame
97 SOX_CONF_OPTS
+= --without-twolame
100 ifeq ($(BR2_PACKAGE_WAVPACK
),y
)
101 SOX_DEPENDENCIES
+= wavpack
103 SOX_CONF_OPTS
+= --without-wavpack
106 $(eval
$(autotools-package
))