aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2018-01-22 14:41:18 +0800
committerdanfe <danfe@FreeBSD.org>2018-01-22 14:41:18 +0800
commit956ef41611d048c9f8b6310b454144d6dbe15604 (patch)
tree218ff10df175a11f7c6aa9abbc05f5156dc0a65e /net
parent373ad21a2167767308e94e9297544f49459e568b (diff)
downloadfreebsd-ports-gnome-956ef41611d048c9f8b6310b454144d6dbe15604.tar.gz
freebsd-ports-gnome-956ef41611d048c9f8b6310b454144d6dbe15604.tar.zst
freebsd-ports-gnome-956ef41611d048c9f8b6310b454144d6dbe15604.zip
Allow to build on powerpc, powerpc64, and sparc64.
Diffstat (limited to 'net')
-rw-r--r--net/libilbc/Makefile3
-rw-r--r--net/libilbc/files/patch-typedefs.h15
2 files changed, 15 insertions, 3 deletions
diff --git a/net/libilbc/Makefile b/net/libilbc/Makefile
index 61b72a621799..35c863cdab01 100644
--- a/net/libilbc/Makefile
+++ b/net/libilbc/Makefile
@@ -11,9 +11,6 @@ COMMENT= Internet Low Bit Rate codec (RFC3951)
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
-NOT_FOR_ARCHS= powerpc64 sparc64
-NOT_FOR_ARCHS_REASON= not yet ported to this architecture
-
CONFLICTS= ilbc-r[0-9]*
USE_GITHUB= yes
diff --git a/net/libilbc/files/patch-typedefs.h b/net/libilbc/files/patch-typedefs.h
new file mode 100644
index 000000000000..fc0d1e6ea03a
--- /dev/null
+++ b/net/libilbc/files/patch-typedefs.h
@@ -0,0 +1,15 @@
+--- typedefs.h.orig 2014-12-14 19:34:22 UTC
++++ typedefs.h
+@@ -26,6 +26,12 @@
+ #elif defined(__aarch64__)
+ #define WEBRTC_ARCH_64_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__powerpc64__) || defined(__sparc64__)
++#define WEBRTC_ARCH_64_BITS
++#define WEBRTC_ARCH_BIG_ENDIAN
++#elif defined(__powerpc__)
++#define WEBRTC_ARCH_32_BITS
++#define WEBRTC_ARCH_BIG_ENDIAN
+ #elif defined(_M_IX86) || defined(__i386__)
+ #define WEBRTC_ARCH_X86_FAMILY
+ #define WEBRTC_ARCH_X86