diff --git a/net/sems/Makefile b/net/sems/Makefile index f352159b369e..f1860f7c1c30 100644 --- a/net/sems/Makefile +++ b/net/sems/Makefile @@ -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 diff --git a/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h b/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h new file mode 100644 index 000000000000..5a89dbbac0be --- /dev/null +++ b/net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h @@ -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)