svn commit: r513387 - in head/net/sems: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Sep 30 14:22:55 UTC 2019
Author: pkubaj
Date: Mon Sep 30 14:22:54 2019
New Revision: 513387
URL: https://svnweb.freebsd.org/changeset/ports/513387
Log:
net/sems: fix build on big-endian architectures
This port needs C++11 compiler:
cc1plus: error: unrecognized command line option "-std=c++11"
Additionally, it needs appropriate definitions for big-endian architectures:
/usr/local/poudriere/ports/default/net/sems/work/sems-7400051/core/plug-in/isac/libisac/typedefs.h:80:2: error: #error Please add support for your architecture in typedefs.h
80 | #error Please add support for your architecture in typedefs.h
| ^~~~~
PR: 240707
Approved by: nwhitehorn (maintainer), linimon (mentor)
Added:
head/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h (contents, props changed)
Modified:
head/net/sems/Makefile
Modified: head/net/sems/Makefile
==============================================================================
--- head/net/sems/Makefile Mon Sep 30 14:22:24 2019 (r513386)
+++ head/net/sems/Makefile Mon Sep 30 14:22:54 2019 (r513387)
@@ -21,7 +21,7 @@ LIB_DEPENDS= libopus.so:audio/opus \
libspeex.so:audio/speex \
libspandsp.so:comms/spandsp
-USES= cmake python:2.7,run shebangfix
+USES= cmake compiler:c++11-lang python:2.7,run shebangfix
SHEBANG_GLOB= sems-*
USE_GITHUB= yes
Added: head/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h Mon Sep 30 14:22:54 2019 (r513387)
@@ -0,0 +1,23 @@
+--- core/plug-in/isac/libisac/typedefs.h.orig 2019-09-18 08:25:08 UTC
++++ core/plug-in/isac/libisac/typedefs.h
+@@ -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)
More information about the svn-ports-all
mailing list