Build xine-lib with wavpack support

Activate wavpack support in xine-lib. This reveals a latent bug
(missing include) in xine-lib, for which a patch is provided.
pull/149/head
Ulrich Klauer 11 years ago
parent ef2b62d98b
commit f31c48e8ae

@ -0,0 +1,23 @@
This file is part of MXE.
See index.html for further information.
This patch has been taken from:
https://bugs.xine-project.org/show_bug.cgi?id=494
diff -urN xine-lib-1.1.21-orig/src/combined/decoder_wavpack.c xine-lib-1.1.21/src/combined/decoder_wavpack.c
--- xine-lib-1.1.21-orig/src/combined/decoder_wavpack.c 2010-03-09 23:17:05.000000000 +0100
+++ xine-lib-1.1.21/src/combined/decoder_wavpack.c 2013-03-03 17:43:00.000000000 +0100
@@ -27,6 +27,13 @@
#define LOG_MODULE "decode_wavpack"
#define LOG_VERBOSE
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
#include "xine_internal.h"
#include "attributes.h"
#include "bswap.h"

@ -7,7 +7,7 @@ $(PKG)_CHECKSUM := 0adf20ef55d24f2a1b4a8974e57ad1be5133b236
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/xine/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc faad2 ffmpeg flac fontconfig freetype graphicsmagick libiconv libmng pthreads sdl speex theora vorbis zlib
$(PKG)_DEPS := gcc faad2 ffmpeg flac fontconfig freetype graphicsmagick libiconv libmng pthreads sdl speex theora vorbis wavpack zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://hg.debian.org/hg/xine-lib/xine-lib/tags' | \
@ -51,7 +51,7 @@ define $(PKG)_BUILD
--with-internal-vcdlibs \
--with-external-libfaad \
--without-external-libdts \
--without-wavpack \
--with-wavpack \
CFLAGS='-I$(1)/win32/include' \
PTHREAD_LIBS='-lpthread -lws2_32' \
LIBS="`$(TARGET)-pkg-config --libs libmng`"

Loading…
Cancel
Save