Move all to deprecated folder.
This commit is contained in:
26
deprecated/firmware/buildroot/package/sox/0001-uclibc.patch
Normal file
26
deprecated/firmware/buildroot/package/sox/0001-uclibc.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Make SoX support uclibc-based toolchains, from:
|
||||
http://sourceforge.net/p/sox/bugs/179/
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
Index: sox-14.4.1/src/formats.c
|
||||
===================================================================
|
||||
--- sox-14.4.1.orig/src/formats.c
|
||||
+++ sox-14.4.1/src/formats.c
|
||||
@@ -409,7 +409,7 @@ static void UNUSED rewind_pipe(FILE * fp
|
||||
#if defined _FSTDIO || defined _NEWLIB_VERSION || defined __APPLE__
|
||||
fp->_p -= PIPE_AUTO_DETECT_SIZE;
|
||||
fp->_r += PIPE_AUTO_DETECT_SIZE;
|
||||
-#elif defined __GLIBC__
|
||||
+#elif defined __GLIBC__ && ! defined __UCLIBC__
|
||||
fp->_IO_read_ptr = fp->_IO_read_base;
|
||||
#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || defined _ISO_STDIO_ISO_H
|
||||
fp->_ptr = fp->_base;
|
||||
@@ -417,7 +417,6 @@ static void UNUSED rewind_pipe(FILE * fp
|
||||
/* To fix this #error, either simply remove the #error line and live without
|
||||
* file-type detection with pipes, or add support for your compiler in the
|
||||
* lines above. Test with cat monkey.wav | ./sox --info - */
|
||||
- #error FIX NEEDED HERE
|
||||
#define NO_REWIND_PIPE
|
||||
(void)fp;
|
||||
#endif
|
||||
10
deprecated/firmware/buildroot/package/sox/Config.in
Normal file
10
deprecated/firmware/buildroot/package/sox/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_SOX
|
||||
bool "sox"
|
||||
help
|
||||
SoX is a cross-platform (Windows, Linux, MacOS X, etc.) command line
|
||||
utility that can convert various formats of computer audio files
|
||||
into other formats.
|
||||
It can also apply various effects to these sound files, and, as an
|
||||
added bonus, SoX can play and record audio files on most platforms.
|
||||
|
||||
http://sox.sourceforge.net/
|
||||
3
deprecated/firmware/buildroot/package/sox/sox.hash
Normal file
3
deprecated/firmware/buildroot/package/sox/sox.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From http://sourceforge.net/projects/sox/files/sox/14.4.2/
|
||||
md5 ba804bb1ce5c71dd484a102a5b27d0dd sox-14.4.2.tar.bz2
|
||||
sha1 dc9668256b9d81ef25d672f14f12ec026b0b4087 sox-14.4.2.tar.bz2
|
||||
112
deprecated/firmware/buildroot/package/sox/sox.mk
Normal file
112
deprecated/firmware/buildroot/package/sox/sox.mk
Normal file
@@ -0,0 +1,112 @@
|
||||
################################################################################
|
||||
#
|
||||
# sox
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SOX_VERSION = 14.4.2
|
||||
SOX_SITE = http://downloads.sourceforge.net/project/sox/sox/$(SOX_VERSION)
|
||||
SOX_SOURCE = sox-$(SOX_VERSION).tar.bz2
|
||||
SOX_DEPENDENCIES = host-pkgconf
|
||||
SOX_CONF_OPTS = --with-distro="Buildroot" --without-ffmpeg --disable-gomp \
|
||||
$(if $(BR2_TOOLCHAIN_HAS_SSP),,--disable-stack-protector)
|
||||
SOX_LICENSE = GPLv2+ (sox binary), LGPLv2.1+ (libraries)
|
||||
SOX_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL
|
||||
|
||||
# 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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
||||
SOX_DEPENDENCIES += alsa-lib
|
||||
else
|
||||
SOX_CONF_OPTS += --without-alsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FILE),y)
|
||||
SOX_DEPENDENCIES += file
|
||||
else
|
||||
SOX_CONF_OPTS += --without-magic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLAC),y)
|
||||
SOX_DEPENDENCIES += flac
|
||||
else
|
||||
SOX_CONF_OPTS += --without-flac
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LAME),y)
|
||||
SOX_DEPENDENCIES += lame
|
||||
else
|
||||
SOX_CONF_OPTS += --without-lame
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBAO),y)
|
||||
SOX_DEPENDENCIES += libao
|
||||
else
|
||||
SOX_CONF_OPTS += --without-ao
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBID3TAG),y)
|
||||
SOX_DEPENDENCIES += libid3tag
|
||||
else
|
||||
SOX_CONF_OPTS += --without-id3tag
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMAD),y)
|
||||
SOX_DEPENDENCIES += libmad
|
||||
else
|
||||
SOX_CONF_OPTS += --without-mad
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
SOX_DEPENDENCIES += libpng
|
||||
else
|
||||
SOX_CONF_OPTS += --without-png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
||||
SOX_DEPENDENCIES += libsndfile
|
||||
else
|
||||
SOX_CONF_OPTS += --without-sndfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
||||
SOX_DEPENDENCIES += libvorbis
|
||||
else
|
||||
SOX_CONF_OPTS += --without-oggvorbis
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
|
||||
SOX_DEPENDENCIES += opencore-amr
|
||||
else
|
||||
SOX_CONF_OPTS += --without-amrwb --without-amrnb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUSFILE),y)
|
||||
SOX_DEPENDENCIES += opusfile
|
||||
else
|
||||
SOX_CONF_OPTS += --without-opus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
SOX_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
SOX_CONF_OPTS += --without-pulseaudio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TWOLAME),y)
|
||||
SOX_DEPENDENCIES += twolame
|
||||
else
|
||||
SOX_CONF_OPTS += --without-twolame
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAVPACK),y)
|
||||
SOX_DEPENDENCIES += wavpack
|
||||
else
|
||||
SOX_CONF_OPTS += --without-wavpack
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user