2014-06-28 03:38:54 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sox
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-02-25 14:06:24 +01:00
|
|
|
SOX_VERSION = 14.4.2
|
2014-06-28 03:38:54 +02:00
|
|
|
SOX_SITE = http://downloads.sourceforge.net/project/sox/sox/$(SOX_VERSION)
|
2015-02-25 14:06:24 +01:00
|
|
|
SOX_SOURCE = sox-$(SOX_VERSION).tar.bz2
|
2014-06-28 03:38:54 +02:00
|
|
|
SOX_DEPENDENCIES = host-pkgconf
|
2015-03-06 18:53:05 +01:00
|
|
|
SOX_CONF_OPTS = --with-distro="Buildroot" --without-ffmpeg --disable-gomp \
|
|
|
|
$(if $(BR2_TOOLCHAIN_HAS_SSP),,--disable-stack-protector)
|
2014-06-28 03:38:54 +02:00
|
|
|
SOX_LICENSE = GPLv2+ (sox binary), LGPLv2.1+ (libraries)
|
|
|
|
SOX_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL
|
|
|
|
|
2016-02-29 17:39:42 +01:00
|
|
|
# MIPS Codescape toolchains don't support stack-smashing protection
|
|
|
|
# despite of using glibc.
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS)$(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS),y)
|
|
|
|
SOX_CONF_OPTS += --disable-stack-protector
|
|
|
|
endif
|
|
|
|
|
2014-06-28 03:38:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
|
|
|
SOX_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-alsa
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
|
|
|
SOX_DEPENDENCIES += file
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-magic
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FLAC),y)
|
|
|
|
SOX_DEPENDENCIES += flac
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-flac
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LAME),y)
|
|
|
|
SOX_DEPENDENCIES += lame
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-lame
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBAO),y)
|
|
|
|
SOX_DEPENDENCIES += libao
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-ao
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBID3TAG),y)
|
|
|
|
SOX_DEPENDENCIES += libid3tag
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-id3tag
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAD),y)
|
|
|
|
SOX_DEPENDENCIES += libmad
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-mad
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
SOX_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-png
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
|
|
|
SOX_DEPENDENCIES += libsndfile
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-sndfile
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
|
|
|
SOX_DEPENDENCIES += libvorbis
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-oggvorbis
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
|
|
|
|
SOX_DEPENDENCIES += opencore-amr
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-amrwb --without-amrnb
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-25 14:06:26 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUSFILE),y)
|
|
|
|
SOX_DEPENDENCIES += opusfile
|
|
|
|
else
|
|
|
|
SOX_CONF_OPTS += --without-opus
|
|
|
|
endif
|
|
|
|
|
2014-06-28 03:38:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
|
|
|
SOX_DEPENDENCIES += pulseaudio
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-pulseaudio
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TWOLAME),y)
|
|
|
|
SOX_DEPENDENCIES += twolame
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-twolame
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WAVPACK),y)
|
|
|
|
SOX_DEPENDENCIES += wavpack
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS += --without-wavpack
|
2014-06-28 03:38:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|