2014-06-28 03:38:54 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sox
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SOX_VERSION = 14.4.1
|
|
|
|
SOX_SITE = http://downloads.sourceforge.net/project/sox/sox/$(SOX_VERSION)
|
|
|
|
SOX_DEPENDENCIES = host-pkgconf
|
2014-09-27 21:32:44 +02:00
|
|
|
SOX_CONF_OPTS = --with-distro="Buildroot" --without-ffmpeg --disable-gomp
|
2014-06-28 03:38:54 +02:00
|
|
|
SOX_LICENSE = GPLv2+ (sox binary), LGPLv2.1+ (libraries)
|
|
|
|
SOX_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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))
|