Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2019 14:22:54 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r513387 - in head/net/sems: . files
Message-ID:  <201909301422.x8UEMsUw062369@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909301422.x8UEMsUw062369>