webrtc-audio-processing: add support for ppc64 targets
This commit is contained in:
parent
001811d311
commit
362cc03b6b
|
@ -0,0 +1,33 @@
|
|||
From: Than <than@redhat.com>
|
||||
Date: Wed, 8 Jun 2016 19:10:08 -0400
|
||||
Subject: Add generic byte order and pointer size detection
|
||||
|
||||
---
|
||||
webrtc/typedefs.h | 14 +++++++++++++-
|
||||
1 file changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h
|
||||
index d875490..dc074f1 100644
|
||||
--- a/webrtc/typedefs.h
|
||||
+++ b/webrtc/typedefs.h
|
||||
@@ -48,7 +48,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(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))
|
|
@ -3,14 +3,14 @@ pkgname=webrtc-audio-processing
|
|||
version=0.3.1
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
patch_args="-p1"
|
||||
short_desc="AudioProcessing library based on Google's implementation of WebRTC"
|
||||
hostmakedepends="automake libtool"
|
||||
short_desc="AudioProcessing library based on Google's implementation of WebRTC"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
|
||||
distfiles="${homepage}/${pkgname}-${version}.tar.xz"
|
||||
checksum=a0fdd938fd85272d67e81572c5a4d9e200a0c104753cb3c209ded175ce3c5dbf
|
||||
patch_args="-p1"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
# Disable neon for the arm* architectures
|
||||
|
|
Loading…
Reference in New Issue