yate: add patch that adds ppc arch to typedefs.h
authorJiri Slachta <slachta@cesnet.cz>
Mon, 18 Aug 2014 12:01:39 +0000 (14:01 +0200)
committerJiri Slachta <slachta@cesnet.cz>
Mon, 18 Aug 2014 12:05:28 +0000 (14:05 +0200)
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
net/yate/Makefile
net/yate/patches/001-ppc-fix.patch [new file with mode: 0644]

index 0a4f24f6f14872fc818dc5510224f18118d82591..5d578b5045dbee6c2681ffd3c8189fc67a4bdf15 100644 (file)
@@ -13,7 +13,7 @@ RELEASEVER:=5.4.0
 
 PKG_NAME:=yate
 PKG_VERSION:=$(RELEASEVER)-1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate5/
diff --git a/net/yate/patches/001-ppc-fix.patch b/net/yate/patches/001-ppc-fix.patch
new file mode 100644 (file)
index 0000000..6a1315b
--- /dev/null
@@ -0,0 +1,31 @@
+Index: yate/libs/miniwebrtc/typedefs.h
+===================================================================
+--- yate.orig/libs/miniwebrtc/typedefs.h
++++ yate/libs/miniwebrtc/typedefs.h
+@@ -79,6 +79,26 @@
+ #elif defined(__mips__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_BIG_ENDIAN
++#elif defined(__powerpc64__)
++#define WEBRTC_ARCH_PPC64 1
++#define WEBRTC_ARCH_64_BITS
++#ifdef __LITTLE_ENDIAN__
++#define WEBRTC_ARCH_LITTLE_ENDIAN
++#define WEBRTC_LITTLE_ENDIAN
++#else
++#define WEBRTC_ARCH_BIG_ENDIAN
++#define WEBRTC_BIG_ENDIAN
++#endif
++#elif defined(__powerpc__)
++#define WEBRTC_ARCH_PPC 1
++#define WEBRTC_ARCH_32_BITS
++#ifdef __LITTLE_ENDIAN__
++#define WEBRTC_ARCH_LITTLE_ENDIAN
++#define WEBRTC_LITTLE_ENDIAN
++#else
++#define WEBRTC_ARCH_BIG_ENDIAN
++#define WEBRTC_BIG_ENDIAN
++#endif
+ #else
+ #error Please add support for your architecture in typedefs.h
+ #endif