From 606b0184f2a7149fd926dc752618915dc73d6bf4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 25 Jun 2016 07:51:59 +0200 Subject: [PATCH] webrtc-audio-processing: update to 0.3. --- common/shlibs | 2 +- .../patches/musl.patch | 20 ++++++++++++++++ .../webrtc-fix-typedefs-on-other-arches.patch | 24 ------------------- srcpkgs/webrtc-audio-processing/template | 9 ++++--- 4 files changed, 25 insertions(+), 30 deletions(-) create mode 100644 srcpkgs/webrtc-audio-processing/patches/musl.patch delete mode 100644 srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch diff --git a/common/shlibs b/common/shlibs index e24a969bc07..919d6847b65 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1022,7 +1022,7 @@ libiptcdata.so.0 libiptcdata-1.0.4_1 libutempter.so.0 libutempter-1.1.5_1 libxatracker.so.2 libxatracker-10.0.0_2 libtumbler-1.so.0 tumbler-4.9.2_1 -libwebrtc_audio_processing.so.0 webrtc-audio-processing-0.1_1 +libwebrtc_audio_processing.so.1 webrtc-audio-processing-0.3_1 libcupsmime.so.1 libcups-1.5.3_1 libcupsppdc.so.1 libcups-1.5.3_1 libcupscgi.so.1 libcups-1.5.3_1 diff --git a/srcpkgs/webrtc-audio-processing/patches/musl.patch b/srcpkgs/webrtc-audio-processing/patches/musl.patch new file mode 100644 index 00000000000..3f4337ccf0a --- /dev/null +++ b/srcpkgs/webrtc-audio-processing/patches/musl.patch @@ -0,0 +1,20 @@ +--- webrtc/base/checks.cc.orig 2016-06-25 07:47:34.099515548 +0200 ++++ webrtc/base/checks.cc 2016-06-25 07:48:28.554122463 +0200 +@@ -16,7 +16,7 @@ + #include + #include + +-#if defined(__GLIBCXX__) && !defined(__UCLIBC__) ++#if defined(__GLIBC__) && defined(__GLIBCXX__) + #include + #include + #endif +@@ -55,7 +55,7 @@ void PrintError(const char* format, ...) + // to get usable symbols on Linux. This is copied from V8. Chromium has a more + // advanced stace trace system; also more difficult to copy. + void DumpBacktrace() { +-#if defined(__GLIBCXX__) && !defined(__UCLIBC__) ++#if defined(__GLIBC__) && defined(__GLIBCXX__) + void* trace[100]; + int size = backtrace(trace, sizeof(trace) / sizeof(*trace)); + char** symbols = backtrace_symbols(trace, size); diff --git a/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch b/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch deleted file mode 100644 index fe8aa638c9c..00000000000 --- a/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- src/typedefs.h 2011-10-21 00:29:33.000000000 -0400 -+++ src/typedefs.h 2014-01-28 18:42:57.816865572 -0500 -@@ -77,7 +77,19 @@ - #define WEBRTC_ARCH_32_BITS - #define WEBRTC_ARCH_LITTLE_ENDIAN - #else --#error Please add support for your architecture in typedefs.h -+/* instead of failing, use typical unix defines... */ -+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+#define WEBRTC_ARCH_LITTLE_ENDIAN -+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -+#define WEBRTC_ARCH_BIG_ENDIAN -+#else -+#error __BYTE_ORDER__ is not defined! -+#endif -+#if defined(__LP64__) -+#define WEBRTC_ARCH_64_BITS -+#else -+#define WEBRTC_ARCH_32_BITS -+#endif - #endif - - #if defined(__SSE2__) || defined(_MSC_VER) - diff --git a/srcpkgs/webrtc-audio-processing/template b/srcpkgs/webrtc-audio-processing/template index d53c98c41da..0b010915c4d 100644 --- a/srcpkgs/webrtc-audio-processing/template +++ b/srcpkgs/webrtc-audio-processing/template @@ -1,18 +1,17 @@ # Template file for 'webrtc-audio-processing' pkgname=webrtc-audio-processing -version=0.1 -revision=3 +version=0.3 +revision=1 build_style=gnu-configure short_desc="AudioProcessing library based on Google's implementation of WebRTC" maintainer="Juan RP " license="BSD" homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing" distfiles="$homepage/$pkgname-$version.tar.xz" -checksum=ed4b52f9c2688b97628035a5565377d74704d7c04de4254a768df3342c7afedc +checksum=756e291d4f557d88cd50c4fe3b8454ec238362d22cedb3e6173240d90f0a80fa post_install() { - vinstall COPYING 644 usr/share/licenses/${pkgname} - vinstall PATENTS 644 usr/share/licenses/${pkgname} + vlicense COPYING } webrtc-audio-processing-devel_package() {