[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 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,32 @@
This patch is taken from the Arch Linux User Repository, see:
https://aur.archlinux.org/packages/sdl_sound-patched-hg/
Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
diff -ru SDL_sound.orig/playsound/physfsrwops.h SDL_sound/playsound/physfsrwops.h
--- SDL_sound.orig/playsound/physfsrwops.h 2014-01-11 06:28:35.494936000 +0100
+++ SDL_sound/playsound/physfsrwops.h 2014-01-11 06:31:38.315675483 +0100
@@ -29,6 +29,11 @@
extern "C" {
#endif
+/* renamed in physfs dev, add alias */
+#ifdef PHYSFS_DECL
+#define __EXPORT__ PHYSFS_DECL
+#endif
+
/**
* Open a platform-independent filename for reading, and make it accessible
* via an SDL_RWops structure. The file will be closed in PhysicsFS when the
@@ -77,6 +82,11 @@
*/
__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
+/* renamed in physfs dev, remove alias */
+#ifdef PHYSFS_DECL
+#undef __EXPORT__
+#endif
+
#ifdef __cplusplus
}
#endif

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,3 @@
# Locally calculated
sha256 3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df SDL_sound-1.0.3.tar.gz
sha256 2a781dd2f8c5435c59cfa3b79dfea1c1d7df676ed318ecc802139f76ac345d07 COPYING

View File

@ -0,0 +1,74 @@
################################################################################
#
# 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 = LGPL-2.1+
SDL_SOUND_LICENSE_FILES = COPYING
SDL_SOUND_INSTALL_STAGING = YES
SDL_SOUND_DEPENDENCIES = sdl
SDL_SOUND_CONF_OPTS = \
--with-sdl-prefix=$(STAGING_DIR)/usr \
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
--disable-sdltest \
--enable-static
ifneq ($(BR2_ENABLE_LOCALE),y)
SDL_SOUND_DEPENDENCIES += libiconv
endif
# optional dependencies
ifeq ($(BR2_PACKAGE_FLAC)$(BR2_PACKAGE_LIBOGG),yy)
SDL_SOUND_CONF_OPTS += --enable-flac
SDL_SOUND_DEPENDENCIES += flac libogg
else
SDL_SOUND_CONF_OPTS += --disable-flac
endif
ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
SDL_SOUND_CONF_OPTS += --enable-modplug
SDL_SOUND_DEPENDENCIES += libmodplug
else
SDL_SOUND_CONF_OPTS += --disable-modplug
endif
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
SDL_SOUND_CONF_OPTS += --enable-ogg
SDL_SOUND_DEPENDENCIES += libvorbis
else
SDL_SOUND_CONF_OPTS += --disable-ogg
endif
ifeq ($(BR2_PACKAGE_SPEEX),y)
SDL_SOUND_CONF_OPTS += --enable-speex
SDL_SOUND_DEPENDENCIES += speex
else
SDL_SOUND_CONF_OPTS += --disable-speex
endif
ifeq ($(BR2_PACKAGE_PHYSFS),y)
SDL_SOUND_CONF_OPTS += --enable-physfs
SDL_SOUND_DEPENDENCIES += physfs
else
SDL_SOUND_CONF_OPTS += --disable-physfs
endif
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))