Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2019 13:53:19 +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: r508170 - in head/misc/libsweep-lidar: . files
Message-ID:  <201908051353.x75DrJJv059430@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Aug  5 13:53:19 2019
New Revision: 508170
URL: https://svnweb.freebsd.org/changeset/ports/508170

Log:
  misc/libsweep-lidar: fix build with GCC architectures
  
  This needs c++11 compiler. GCC from ports doesn't support -Weverything.
  
  PR:		239332
  Approved by:	hyun@caffeinated.codes (maintainer), tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21145

Added:
  head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt   (contents, props changed)
Modified:
  head/misc/libsweep-lidar/Makefile

Modified: head/misc/libsweep-lidar/Makefile
==============================================================================
--- head/misc/libsweep-lidar/Makefile	Mon Aug  5 13:31:45 2019	(r508169)
+++ head/misc/libsweep-lidar/Makefile	Mon Aug  5 13:53:19 2019	(r508170)
@@ -11,9 +11,7 @@ COMMENT=		Low-level Scanse Sweep LiDAR library
 LICENSE=		MIT
 LICENSE_FILE=		${WRKSRC}/LICENSE
 
-BROKEN_powerpc64=	fails to compile: unrecognized command line option "-Weverything"
-
-USES=			cmake
+USES=			cmake compiler:c++11-lang
 USE_GITHUB=		yes
 GH_ACCOUNT=		scanse
 GH_PROJECT=		sweep-sdk

Added: head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt	Mon Aug  5 13:53:19 2019	(r508170)
@@ -0,0 +1,11 @@
+--- libsweep/CMakeLists.txt.orig	2019-07-20 09:46:23 UTC
++++ libsweep/CMakeLists.txt
+@@ -19,7 +19,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+   set(libsweep_OS unix)
+ 
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Weverything -fvisibility=hidden -fPIC -fno-rtti")
++  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fvisibility=hidden -fPIC -fno-rtti")
+   set(libsweep_OS unix)
+ 
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")



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