1 ################################################################################
5 ################################################################################
8 SOX_SITE
= http
://downloads.sourceforge.net
/project
/sox
/sox
/$(SOX_VERSION
)
9 SOX_DEPENDENCIES
= host-pkgconf
10 SOX_CONF_OPTS
= --with-distro
="Buildroot" --without-ffmpeg
--disable-gomp
11 SOX_LICENSE
= GPLv2
+ (sox binary
), LGPLv2.1
+ (libraries
)
12 SOX_LICENSE_FILES
= LICENSE.GPL LICENSE.LGPL
14 ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM
),y
)
15 SOX_DEPENDENCIES
+= alsa-lib
17 SOX_CONF_OPTS
+= --without-alsa
20 ifeq ($(BR2_PACKAGE_FILE
),y
)
21 SOX_DEPENDENCIES
+= file
23 SOX_CONF_OPTS
+= --without-magic
26 ifeq ($(BR2_PACKAGE_FLAC
),y
)
27 SOX_DEPENDENCIES
+= flac
29 SOX_CONF_OPTS
+= --without-flac
32 ifeq ($(BR2_PACKAGE_LAME
),y
)
33 SOX_DEPENDENCIES
+= lame
35 SOX_CONF_OPTS
+= --without-lame
38 ifeq ($(BR2_PACKAGE_LIBAO
),y
)
39 SOX_DEPENDENCIES
+= libao
41 SOX_CONF_OPTS
+= --without-ao
44 ifeq ($(BR2_PACKAGE_LIBID3TAG
),y
)
45 SOX_DEPENDENCIES
+= libid3tag
47 SOX_CONF_OPTS
+= --without-id3tag
50 ifeq ($(BR2_PACKAGE_LIBMAD
),y
)
51 SOX_DEPENDENCIES
+= libmad
53 SOX_CONF_OPTS
+= --without-mad
56 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
57 SOX_DEPENDENCIES
+= libpng
59 SOX_CONF_OPTS
+= --without-png
62 ifeq ($(BR2_PACKAGE_LIBSNDFILE
),y
)
63 SOX_DEPENDENCIES
+= libsndfile
65 SOX_CONF_OPTS
+= --without-sndfile
68 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
69 SOX_DEPENDENCIES
+= libvorbis
71 SOX_CONF_OPTS
+= --without-oggvorbis
74 ifeq ($(BR2_PACKAGE_OPENCORE_AMR
),y
)
75 SOX_DEPENDENCIES
+= opencore-amr
77 SOX_CONF_OPTS
+= --without-amrwb
--without-amrnb
80 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
81 SOX_DEPENDENCIES
+= pulseaudio
83 SOX_CONF_OPTS
+= --without-pulseaudio
86 ifeq ($(BR2_PACKAGE_TWOLAME
),y
)
87 SOX_DEPENDENCIES
+= twolame
89 SOX_CONF_OPTS
+= --without-twolame
92 ifeq ($(BR2_PACKAGE_WAVPACK
),y
)
93 SOX_DEPENDENCIES
+= wavpack
95 SOX_CONF_OPTS
+= --without-wavpack
98 $(eval
$(autotools-package
))