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