git: bf2dd89bcce2 - main - comms/libdc: New port

From: Romain Tartière <romain_at_FreeBSD.org>
Date: Sat, 29 Oct 2022 20:17:13 UTC
The branch main has been updated by romain:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bf2dd89bcce2edb92d8a774fcf02ed07253730ca

commit bf2dd89bcce2edb92d8a774fcf02ed07253730ca
Author:     Romain Tartière <romain@FreeBSD.org>
AuthorDate: 2022-10-29 18:41:07 +0000
Commit:     Romain Tartière <romain@FreeBSD.org>
CommitDate: 2022-10-29 20:16:17 +0000

    comms/libdc: New port
    
    Libdivecomputer is a cross-platform and open source library for
    communication with dive computers from various manufacturers.
    
    This port is the subsurface flavor of libdivecomputer.
    
    WWW: http://www.libdivecomputer.org/
---
 comms/Makefile        |   1 +
 comms/libdc/Makefile  |  23 ++++++++
 comms/libdc/distinfo  |   3 +
 comms/libdc/pkg-descr |   4 ++
 comms/libdc/pkg-plist | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 184 insertions(+)

diff --git a/comms/Makefile b/comms/Makefile
index 80cc88dd6916..af639e00af8b 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -73,6 +73,7 @@
     SUBDIR += kermit
     SUBDIR += klog
     SUBDIR += libconcord
+    SUBDIR += libdc
     SUBDIR += libfap
     SUBDIR += libfec
     SUBDIR += libimobiledevice
diff --git a/comms/libdc/Makefile b/comms/libdc/Makefile
new file mode 100644
index 000000000000..900b41f9af67
--- /dev/null
+++ b/comms/libdc/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	libdc
+DISTVERSIONPREFIX=v
+DISTVERSION=	5.0.10
+CATEGORIES=	comms
+
+MAINTAINER=	romain@FreeBSD.org
+COMMENT=	Subsurface version of libdivecomputer
+WWW=		http://www.libdivecomputer.org
+
+LICENSE=	LGPL21+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		autoreconf gmake libtool
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+GH_ACCOUNT=	subsurface
+GNU_CONFIGURE=	yes
+
+OPTIONS_DEFINE=	DOCS
+
+DOCSDIR=	${PREFIX}/share/doc/libdivecomputer
+
+.include <bsd.port.mk>
diff --git a/comms/libdc/distinfo b/comms/libdc/distinfo
new file mode 100644
index 000000000000..2319a92eb5d6
--- /dev/null
+++ b/comms/libdc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666671310
+SHA256 (subsurface-libdc-v5.0.10_GH0.tar.gz) = f9512ed4747f52138a7c7942fee677e33a16d99aa5db4aafe377ef7cd8276567
+SIZE (subsurface-libdc-v5.0.10_GH0.tar.gz) = 418912
diff --git a/comms/libdc/pkg-descr b/comms/libdc/pkg-descr
new file mode 100644
index 000000000000..657dcd81a22c
--- /dev/null
+++ b/comms/libdc/pkg-descr
@@ -0,0 +1,4 @@
+Libdivecomputer is a cross-platform and open source library for
+communication with dive computers from various manufacturers.
+
+This port is the subsurface flavor of libdivecomputer.
diff --git a/comms/libdc/pkg-plist b/comms/libdc/pkg-plist
new file mode 100644
index 000000000000..24a48fdf5e1b
--- /dev/null
+++ b/comms/libdc/pkg-plist
@@ -0,0 +1,153 @@
+bin/dctool
+include/libdivecomputer/atomics_cobalt.h
+include/libdivecomputer/ble.h
+include/libdivecomputer/bluetooth.h
+include/libdivecomputer/buffer.h
+include/libdivecomputer/common.h
+include/libdivecomputer/context.h
+include/libdivecomputer/custom.h
+include/libdivecomputer/datetime.h
+include/libdivecomputer/descriptor.h
+include/libdivecomputer/device.h
+include/libdivecomputer/divesystem_idive.h
+include/libdivecomputer/hw_frog.h
+include/libdivecomputer/hw_ostc.h
+include/libdivecomputer/hw_ostc3.h
+include/libdivecomputer/ioctl.h
+include/libdivecomputer/iostream.h
+include/libdivecomputer/irda.h
+include/libdivecomputer/iterator.h
+include/libdivecomputer/oceanic_atom2.h
+include/libdivecomputer/oceanic_veo250.h
+include/libdivecomputer/oceanic_vtpro.h
+include/libdivecomputer/parser.h
+include/libdivecomputer/reefnet_sensus.h
+include/libdivecomputer/reefnet_sensuspro.h
+include/libdivecomputer/reefnet_sensusultra.h
+include/libdivecomputer/serial.h
+include/libdivecomputer/suunto_d9.h
+include/libdivecomputer/suunto_eon.h
+include/libdivecomputer/suunto_vyper2.h
+include/libdivecomputer/units.h
+include/libdivecomputer/usb.h
+include/libdivecomputer/usbhid.h
+include/libdivecomputer/version.h
+lib/libdivecomputer.a
+lib/libdivecomputer.so
+lib/libdivecomputer.so.0
+lib/libdivecomputer.so.0.0.0
+libdata/pkgconfig/libdivecomputer.pc
+man/man3/dc_bluetooth_addr2str.3.gz
+man/man3/dc_bluetooth_device_free.3.gz
+man/man3/dc_bluetooth_device_get_address.3.gz
+man/man3/dc_bluetooth_device_get_name.3.gz
+man/man3/dc_bluetooth_iterator_new.3.gz
+man/man3/dc_bluetooth_open.3.gz
+man/man3/dc_bluetooth_str2addr.3.gz
+man/man3/dc_buffer_append.3.gz
+man/man3/dc_buffer_free.3.gz
+man/man3/dc_buffer_get_data.3.gz
+man/man3/dc_buffer_get_size.3.gz
+man/man3/dc_buffer_new.3.gz
+man/man3/dc_buffer_prepend.3.gz
+man/man3/dc_context_free.3.gz
+man/man3/dc_context_new.3.gz
+man/man3/dc_context_set_logfunc.3.gz
+man/man3/dc_context_set_loglevel.3.gz
+man/man3/dc_datetime_gmtime.3.gz
+man/man3/dc_datetime_localtime.3.gz
+man/man3/dc_datetime_mktime.3.gz
+man/man3/dc_datetime_now.3.gz
+man/man3/dc_descriptor_free.3.gz
+man/man3/dc_descriptor_get_model.3.gz
+man/man3/dc_descriptor_get_product.3.gz
+man/man3/dc_descriptor_get_transports.3.gz
+man/man3/dc_descriptor_get_vendor.3.gz
+man/man3/dc_descriptor_iterator.3.gz
+man/man3/dc_device_close.3.gz
+man/man3/dc_device_foreach.3.gz
+man/man3/dc_device_open.3.gz
+man/man3/dc_device_set_cancel.3.gz
+man/man3/dc_device_set_events.3.gz
+man/man3/dc_device_set_fingerprint.3.gz
+man/man3/dc_iostream_close.3.gz
+man/man3/dc_irda_device_free.3.gz
+man/man3/dc_irda_device_get_address.3.gz
+man/man3/dc_irda_device_get_name.3.gz
+man/man3/dc_irda_iterator_new.3.gz
+man/man3/dc_irda_open.3.gz
+man/man3/dc_iterator_free.3.gz
+man/man3/dc_iterator_next.3.gz
+man/man3/dc_parser_destroy.3.gz
+man/man3/dc_parser_get_datetime.3.gz
+man/man3/dc_parser_get_field.3.gz
+man/man3/dc_parser_new.3.gz
+man/man3/dc_parser_samples_foreach.3.gz
+man/man3/dc_parser_set_data.3.gz
+man/man3/dc_serial_device_free.3.gz
+man/man3/dc_serial_device_get_name.3.gz
+man/man3/dc_serial_iterator_new.3.gz
+man/man3/dc_serial_open.3.gz
+man/man3/dc_usbhid_device_free.3.gz
+man/man3/dc_usbhid_device_get_pid.3.gz
+man/man3/dc_usbhid_device_get_vid.3.gz
+man/man3/dc_usbhid_iterator_new.3.gz
+man/man3/dc_usbhid_open.3.gz
+man/man3/libdivecomputer.3.gz
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_addr2str.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_device_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_device_get_address.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_device_get_name.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_iterator_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_open.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_bluetooth_str2addr.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_append.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_get_data.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_get_size.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_buffer_prepend.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_context_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_context_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_context_set_logfunc.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_context_set_loglevel.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_datetime_gmtime.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_datetime_localtime.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_datetime_mktime.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_datetime_now.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_get_model.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_get_product.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_get_transports.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_get_vendor.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_descriptor_iterator.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_close.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_foreach.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_open.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_set_cancel.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_set_events.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_device_set_fingerprint.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_iostream_close.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_irda_device_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_irda_device_get_address.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_irda_device_get_name.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_irda_iterator_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_irda_open.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_iterator_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_iterator_next.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_destroy.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_get_datetime.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_get_field.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_samples_foreach.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_parser_set_data.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_serial_device_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_serial_device_get_name.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_serial_iterator_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_serial_open.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_usbhid_device_free.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_usbhid_device_get_pid.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_usbhid_device_get_vid.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_usbhid_iterator_new.3.html
+%%PORTDOCS%%%%DOCSDIR%%/dc_usbhid_open.3.html
+%%PORTDOCS%%%%DOCSDIR%%/libdivecomputer.3.html