summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--groups/251.native_packages_lib.group1
-rw-r--r--patches/sdl1_mixer-1.2.12.local.patch55
2 files changed, 56 insertions, 0 deletions
diff --git a/groups/251.native_packages_lib.group b/groups/251.native_packages_lib.group
index 6be9218b..8be8f66a 100644
--- a/groups/251.native_packages_lib.group
+++ b/groups/251.native_packages_lib.group
@@ -326,6 +326,7 @@ sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_ttf wolfssl")";
: ${PKG_SDL1_MIXER_SHA256SUM:=1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a};
: ${PKG_SDL1_MIXER_VERSION:=1.2.12};
: ${PKG_SDL1_MIXER_URL:=https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${PKG_SDL1_MIXER_VERSION}.tar.gz};
+: ${PKG_SDL1_MIXER_CONFIGURE_ARGS_EXTRA:="--enable-music-mod=no --enable-music-mod-modplug=no --enable-music-midi=no --enable-music-fluidsynth-midi=no --enable-music-mp3=no"};
: ${PKG_SDL1_MIXER_LDFLAGS_CONFIGURE:=-L${PREFIX_NATIVE}/lib};
: ${PKG_SDL1_IMAGE_DEPENDS:="libz sdl1 libpng libjpeg_turbo tiff"};
: ${PKG_SDL1_IMAGE_SHA256SUM:=0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699};
diff --git a/patches/sdl1_mixer-1.2.12.local.patch b/patches/sdl1_mixer-1.2.12.local.patch
new file mode 100644
index 00000000..5c8924ca
--- /dev/null
+++ b/patches/sdl1_mixer-1.2.12.local.patch
@@ -0,0 +1,55 @@
+--- SDL_mixer-1.2.12/configure.orig 2012-01-15 23:01:05.000000000 +0100
++++ SDL_mixer-1.2.12/configure 2021-08-15 19:26:57.984417138 +0200
+@@ -14753,15 +14753,15 @@
+ DEPENDS=`echo $SOURCES`
+ OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
+ DEPENDS=`echo "$DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
+-$(objects)/\2.lo: \1/\2.c\\
+- \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
++$(objects)/\2.lo: $(objects) \1/\2.c\\
++ \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \1/\2.c -o \$@,g'`
+
+ OBJECTS_CXX=`echo $SOURCES_CXX`
+ DEPENDS_CXX=`echo $SOURCES_CXX`
+ OBJECTS_CXX=`echo "$OBJECTS_CXX" | sed 's,[^ ]*/\([^ ]*\)\.cpp,$(objects)/\1.lo,g'`
+ DEPENDS_CXX=`echo "$DEPENDS_CXX" | sed 's,\([^ ]*\)/\([^ ]*\)\.cpp,\\
+-$(objects)/\2.lo: \1/\2.cpp\\
+- \$(LIBTOOL) --mode=compile \$(CXX) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
++$(objects)/\2.lo: $(objects) \1/\2.cpp\\
++ \$(LIBTOOL) --mode=compile \$(CXX) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \1/\2.cpp -o \$@,g'`
+ OBJECTS="$OBJECTS $OBJECTS_CXX"
+ DEPENDS="$DEPENDS $DEPENDS_CXX"
+ DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'`
+@@ -14770,8 +14770,8 @@
+ VERSION_DEPENDS=`echo $VERSION_SOURCES`
+ VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
+ VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.rc,\\
+-$(objects)/\2.o: \1/\2.rc\\
+- \$(WINDRES) \$< \$@,g'`
++$(objects)/\2.o: $(objects) \1/\2.rc\\
++ \$(WINDRES) \1/\2.rc \$@,g'`
+ VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'`
+
+ PLAYWAVE_SOURCES="$srcdir/playwave.c"
+@@ -14779,8 +14779,8 @@
+ PLAYWAVE_DEPENDS=`echo $PLAYWAVE_SOURCES`
+ PLAYWAVE_OBJECTS=`echo "$PLAYWAVE_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
+ PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
+-$(objects)/\2.lo: \1/\2.c\\
+- \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
++$(objects)/\2.lo: $(objects) \1/\2.c\\
++ \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \1/\2.c -o \$@,g'`
+ PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\\$,\\\\$,g'`
+
+ PLAYMUS_SOURCES="$srcdir/playmus.c"
+@@ -14788,8 +14788,8 @@
+ PLAYMUS_DEPENDS=`echo $PLAYMUS_SOURCES`
+ PLAYMUS_OBJECTS=`echo "$PLAYMUS_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
+ PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
+-$(objects)/\2.lo: \1/\2.c\\
+- \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
++$(objects)/\2.lo: $(objects) \1/\2.c\\
++ \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \1/\2.c -o \$@,g'`
+ PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\\$,\\\\$,g'`
+
+