Index: comms/Makefile =================================================================== --- comms/Makefile +++ comms/Makefile @@ -89,6 +89,7 @@ SUBDIR += librs232 SUBDIR += libsdr SUBDIR += libsdr-gui + SUBDIR += libsweep SUBDIR += libticables2 SUBDIR += libticalcs2 SUBDIR += libusbmuxd Index: comms/libsweep/Makefile =================================================================== --- comms/libsweep/Makefile +++ comms/libsweep/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= libsweep +DISTVERSIONPREFIX= v +DISTVERSION= 1.3.0 +CATEGORIES= comms + +MAINTAINER= hyun@caffeinated.codes +COMMENT= Low-level Scanse Sweep LiDAR library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:outsource compiler:c++11-lib +CMAKE_BUILD_TYPE= Release +CMAKE_SOURCE_PATH= ${WRKSRC}/libsweep + +USE_GITHUB= yes +GH_ACCOUNT= scanse +GH_PROJECT= sweep-sdk + +USE_LDCONFIG= yes + +OPTIONS_DEFINE= NO_DEVICE +NO_DEVICE_DESC= The library will generate dummy static point cloud +NO_DEVICE_CMAKE_BOOL= DUMMY + +.include Index: comms/libsweep/distinfo =================================================================== --- comms/libsweep/distinfo +++ comms/libsweep/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1509816807 +SHA256 (scanse-sweep-sdk-v1.3.0_GH0.tar.gz) = 30b51a9f68ec64684648b54e0d704da7e38a5a0f42a6bc965f3e33f4e3a80af0 +SIZE (scanse-sweep-sdk-v1.3.0_GH0.tar.gz) = 101819 Index: comms/libsweep/files/patch-libsweep_CMakeLists.txt =================================================================== --- comms/libsweep/files/patch-libsweep_CMakeLists.txt +++ comms/libsweep/files/patch-libsweep_CMakeLists.txt @@ -0,0 +1,15 @@ +--- libsweep/CMakeLists.txt.orig 2018-03-14 06:07:54 UTC ++++ libsweep/CMakeLists.txt +@@ -19,7 +19,11 @@ 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") ++ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Weverything -Wno-c++98-compat -fvisibility=hidden -fPIC -fno-rtti") ++ else() ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic -fvisibility=hidden -fPIC -fno-rtti") ++ endif() + set(libsweep_OS unix) + + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") Index: comms/libsweep/files/patch-libsweep_man_sweep-ctl.1 =================================================================== --- comms/libsweep/files/patch-libsweep_man_sweep-ctl.1 +++ comms/libsweep/files/patch-libsweep_man_sweep-ctl.1 @@ -0,0 +1,15 @@ +--- libsweep/man/sweep-ctl.1.orig 2017-11-04 17:36:19 UTC ++++ libsweep/man/sweep-ctl.1 +@@ -34,10 +34,10 @@ The device\[aq]s sample rate in Hz. + .IP + .nf + \f[C] +-$\ sweep\-ctl\ /dev/ttyUSB0\ get\ motor_speed ++$\ sweep\-ctl\ /dev/ttyU0\ get\ motor_speed + 3 + +-$\ sweep\-ctl\ /dev/ttyUSB0\ set\ motor_speed\ 5 ++$\ sweep\-ctl\ /dev/ttyU0\ set\ motor_speed\ 5 + 5 + \f[] + .fi Index: comms/libsweep/pkg-descr =================================================================== --- comms/libsweep/pkg-descr +++ comms/libsweep/pkg-descr @@ -0,0 +1,7 @@ +This is a port of libsweep, part of Scanse Sweep LiDAR SDK. + +This port will install libsweep with C99 header and +C++11 header . This port also installs sweep-ctl(1) +which lets you to issue very basic commands to Sweep device. + +WWW: http://scanse.io/ Index: comms/libsweep/pkg-plist =================================================================== --- comms/libsweep/pkg-plist +++ comms/libsweep/pkg-plist @@ -0,0 +1,9 @@ +bin/sweep-ctl +include/sweep/config.h +include/sweep/sweep.h +include/sweep/sweep.hpp +lib/cmake/sweep/SweepConfig.cmake +lib/libsweep.so +lib/libsweep.so.1 +lib/libsweep.so.1.3.0 +man/man1/sweep-ctl.1.gz