Import buildroot 2016.02.01

This commit is contained in:
2016-02-24 22:35:39 +01:00
parent a6ee09dea4
commit 828befcf3c
7393 changed files with 390887 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
decoders/speex: fix constness of speex mode
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
diff -durN sdl_sound-1.0.3.orig/decoders/speex.c sdl_sound-1.0.3/decoders/speex.c
--- sdl_sound-1.0.3.orig/decoders/speex.c 2014-11-17 19:40:09.543553556 +0100
+++ sdl_sound-1.0.3/decoders/speex.c 2014-11-17 19:40:37.119864580 +0100
@@ -124,7 +124,7 @@
static int process_header(speex_t *speex, Sound_Sample *sample)
{
- SpeexMode *mode;
+ const SpeexMode * mode;
SpeexHeader *hptr;
SpeexHeader header;
int enh_enabled = SPEEX_USE_PERCEPTUAL_ENHANCER;

View File

@@ -0,0 +1,29 @@
Do not add -Werror when --enable-debug is used
Using -Werror causes some problems due to warnings in the SDL_sound
code, so let's disable it.
We patch configure directly, because:
1/ configure.in doesn't autoreconf properly out of the box.
2/ the length of the configure or configure.in patch would be exactly
the same (one line), or maybe more for the configure.in patch if
we want the package to autoreconf properly
3/ the patch will never go upstream, because upstream is dead.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/configure
===================================================================
--- a/configure
+++ b/configure
@@ -19561,7 +19561,6 @@
else
CFLAGS="-O0"
fi
- CFLAGS="$CFLAGS -Werror"
cat >>confdefs.h <<\_ACEOF
#define DEBUG 1

View File

@@ -0,0 +1,23 @@
config BR2_PACKAGE_SDL_SOUND
bool "SDL_sound"
depends on BR2_PACKAGE_SDL
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
SDL_sound is a library that handles the decoding of several
popular sound file formats, such as .WAV and .MP3.
It is meant to make the programmer's sound playback tasks
simpler. The programmer gives SDL_sound a filename, or feeds
it data directly from one of many sources, and then reads the
decoded waveform data back at her leisure.
http://icculus.org/SDL_sound/
if BR2_PACKAGE_SDL_SOUND
config BR2_PACKAGE_SDL_SOUND_PLAYSOUND
bool "install playsound tool"
help
Enable this option to install the playsound/playsound_simple
tools to target.
endif

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df SDL_sound-1.0.3.tar.gz

View File

@@ -0,0 +1,52 @@
################################################################################
#
# sdl_sound
#
################################################################################
SDL_SOUND_VERSION = 1.0.3
SDL_SOUND_SOURCE = SDL_sound-$(SDL_SOUND_VERSION).tar.gz
SDL_SOUND_SITE = http://icculus.org/SDL_sound/downloads
SDL_SOUND_LICENSE = LGPLv2.1+
SDL_SOUND_LICENSE_FILES = COPYING
SDL_SOUND_INSTALL_STAGING = YES
SDL_SOUND_DEPENDENCIES = sdl
ifneq ($(BR2_ENABLE_LOCALE),y)
SDL_SOUND_DEPENDENCIES += libiconv
endif
# optional dependencies
ifeq ($(BR2_PACKAGE_FLAC),y)
SDL_SOUND_DEPENDENCIES += flac # is only used if ogg is also enabled
endif
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
SDL_SOUND_DEPENDENCIES += libvorbis
endif
ifeq ($(BR2_PACKAGE_SPEEX),y)
SDL_SOUND_DEPENDENCIES += speex
endif
SDL_SOUND_CONF_OPTS = \
--with-sdl-prefix=$(STAGING_DIR)/usr \
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
--disable-sdltest \
--enable-static
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
SDL_SOUND_CONF_OPTS += --enable-mmx
else
SDL_SOUND_CONF_OPTS += --disable-mmx
endif
define SDL_SOUND_REMOVE_PLAYSOUND
rm $(addprefix $(TARGET_DIR)/usr/bin/,playsound playsound_simple)
endef
ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y)
SDL_SOUND_POST_INSTALL_TARGET_HOOKS += SDL_SOUND_REMOVE_PLAYSOUND
endif
$(eval $(autotools-package))