docker-engine: new package
[buildroot-gz.git] / package / sox / sox.mk
blob61f5220189369add6a3b7b03e550e7871aecfd5b
1 ################################################################################
3 # sox
5 ################################################################################
7 SOX_VERSION = 14.4.2
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
20 endif
22 ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
23 SOX_DEPENDENCIES += alsa-lib
24 else
25 SOX_CONF_OPTS += --without-alsa
26 endif
28 ifeq ($(BR2_PACKAGE_FILE),y)
29 SOX_DEPENDENCIES += file
30 else
31 SOX_CONF_OPTS += --without-magic
32 endif
34 ifeq ($(BR2_PACKAGE_FLAC),y)
35 SOX_DEPENDENCIES += flac
36 else
37 SOX_CONF_OPTS += --without-flac
38 endif
40 ifeq ($(BR2_PACKAGE_LAME),y)
41 SOX_DEPENDENCIES += lame
42 else
43 SOX_CONF_OPTS += --without-lame
44 endif
46 ifeq ($(BR2_PACKAGE_LIBAO),y)
47 SOX_DEPENDENCIES += libao
48 else
49 SOX_CONF_OPTS += --without-ao
50 endif
52 ifeq ($(BR2_PACKAGE_LIBID3TAG),y)
53 SOX_DEPENDENCIES += libid3tag
54 else
55 SOX_CONF_OPTS += --without-id3tag
56 endif
58 ifeq ($(BR2_PACKAGE_LIBMAD),y)
59 SOX_DEPENDENCIES += libmad
60 else
61 SOX_CONF_OPTS += --without-mad
62 endif
64 ifeq ($(BR2_PACKAGE_LIBPNG),y)
65 SOX_DEPENDENCIES += libpng
66 else
67 SOX_CONF_OPTS += --without-png
68 endif
70 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
71 SOX_DEPENDENCIES += libsndfile
72 else
73 SOX_CONF_OPTS += --without-sndfile
74 endif
76 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
77 SOX_DEPENDENCIES += libvorbis
78 else
79 SOX_CONF_OPTS += --without-oggvorbis
80 endif
82 ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
83 SOX_DEPENDENCIES += opencore-amr
84 else
85 SOX_CONF_OPTS += --without-amrwb --without-amrnb
86 endif
88 ifeq ($(BR2_PACKAGE_OPUSFILE),y)
89 SOX_DEPENDENCIES += opusfile
90 else
91 SOX_CONF_OPTS += --without-opus
92 endif
94 ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
95 SOX_DEPENDENCIES += pulseaudio
96 else
97 SOX_CONF_OPTS += --without-pulseaudio
98 endif
100 ifeq ($(BR2_PACKAGE_TWOLAME),y)
101 SOX_DEPENDENCIES += twolame
102 else
103 SOX_CONF_OPTS += --without-twolame
104 endif
106 ifeq ($(BR2_PACKAGE_WAVPACK),y)
107 SOX_DEPENDENCIES += wavpack
108 else
109 SOX_CONF_OPTS += --without-wavpack
110 endif
112 $(eval $(autotools-package))