git: 5b4847e1ba01 - main - devel/bacnet-stack: New port: open source protocol stack for embedded systems

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Wed, 25 Oct 2023 20:30:20 UTC
The branch main has been updated by acm:

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

commit 5b4847e1ba01b9fc75ba392bf124bceedd0cf6f8
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2023-10-25 20:25:53 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-10-25 20:25:53 +0000

    devel/bacnet-stack: New port: open source protocol stack for embedded systems
    
    BACnet Protocol Stack library provides a BACnet application layer, network
    layer and media access (MAC) layer communications services.
---
 devel/Makefile                                |   1 +
 devel/bacnet-stack/Makefile                   |  19 +++
 devel/bacnet-stack/distinfo                   |   3 +
 devel/bacnet-stack/files/patch-CMakeLists.txt |  19 +++
 devel/bacnet-stack/pkg-descr                  |   2 +
 devel/bacnet-stack/pkg-plist                  | 209 ++++++++++++++++++++++++++
 6 files changed, 253 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index bb4bc4ba1957..6820881b8167 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -268,6 +268,7 @@
     SUBDIR += b2
     SUBDIR += babelflow
     SUBDIR += babeltrace
+    SUBDIR += bacnet-stack
     SUBDIR += bacon
     SUBDIR += bam
     SUBDIR += bashdb
diff --git a/devel/bacnet-stack/Makefile b/devel/bacnet-stack/Makefile
new file mode 100644
index 000000000000..96f4abeed136
--- /dev/null
+++ b/devel/bacnet-stack/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	bacnet-stack
+PORTVERSION=	1.3.1
+CATEGORIES=	devel
+
+MAINTAINER=	acm@FreeBSD.org
+COMMENT=	open source protocol stack for embedded systems
+WWW=		https://github.com/bacnet-stack/bacnet-stack
+
+LICENSE=	GPLv2+
+LICENSE_FILE=	license/readme.txt
+
+USES=		cmake compiler:c++11-lang
+USE_GITHUB=	yes
+GH_ACCOUNT=	bacnet-stack
+GH_TAGNAME=	934761d
+
+LDFLAGS=	-lm
+
+.include <bsd.port.mk>
diff --git a/devel/bacnet-stack/distinfo b/devel/bacnet-stack/distinfo
new file mode 100644
index 000000000000..8c357ebe9dd8
--- /dev/null
+++ b/devel/bacnet-stack/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696361556
+SHA256 (bacnet-stack-bacnet-stack-1.3.1-934761d_GH0.tar.gz) = 7696a2e5896fe1a2c2ec321b9524bb1ba07e23b6f1b6d0bad6246981ffcabfff
+SIZE (bacnet-stack-bacnet-stack-1.3.1-934761d_GH0.tar.gz) = 31214388
diff --git a/devel/bacnet-stack/files/patch-CMakeLists.txt b/devel/bacnet-stack/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..69f004052602
--- /dev/null
+++ b/devel/bacnet-stack/files/patch-CMakeLists.txt
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig	2023-09-29 19:56:28.400665000 -0500
++++ CMakeLists.txt	2023-09-29 19:57:28.695265000 -0500
+@@ -562,6 +562,16 @@
+     ports/bsd/datetime-init.c
+     ports/bsd/mstimer-init.c
+     ports/bsd/stdbool.h)
++elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
++  message(STATUS "BACNET: building for FreeBSD")
++  set(BACNET_PORT_DIRECTORY_PATH ${CMAKE_CURRENT_LIST_DIR}/ports/bsd)
++    
++  target_sources(${PROJECT_NAME} PRIVATE
++    ports/bsd/bacport.h
++    ports/bsd/bip-init.c
++    ports/bsd/datetime-init.c
++    ports/bsd/mstimer-init.c
++    ports/bsd/stdbool.h)
+ endif()
+ 
+ target_include_directories(${PROJECT_NAME} PUBLIC
diff --git a/devel/bacnet-stack/pkg-descr b/devel/bacnet-stack/pkg-descr
new file mode 100644
index 000000000000..2626334224ab
--- /dev/null
+++ b/devel/bacnet-stack/pkg-descr
@@ -0,0 +1,2 @@
+BACnet Protocol Stack library provides a BACnet application layer, network
+layer and media access (MAC) layer communications services.
diff --git a/devel/bacnet-stack/pkg-plist b/devel/bacnet-stack/pkg-plist
new file mode 100644
index 000000000000..37805a5d8a99
--- /dev/null
+++ b/devel/bacnet-stack/pkg-plist
@@ -0,0 +1,209 @@
+include/bacnet/abort.h
+include/bacnet/access_rule.h
+include/bacnet/alarm_ack.h
+include/bacnet/apdu.h
+include/bacnet/arf.h
+include/bacnet/assigned_access_rights.h
+include/bacnet/authentication_factor.h
+include/bacnet/authentication_factor_format.h
+include/bacnet/awf.h
+include/bacnet/bacaddr.h
+include/bacnet/bacapp.h
+include/bacnet/bacdcode.h
+include/bacnet/bacdef.h
+include/bacnet/bacdest.h
+include/bacnet/bacdevobjpropref.h
+include/bacnet/bacenum.h
+include/bacnet/bacerror.h
+include/bacnet/bacint.h
+include/bacnet/bacnet_stack_exports.h
+include/bacnet/bacprop.h
+include/bacnet/bacpropstates.h
+include/bacnet/bacreal.h
+include/bacnet/bacstr.h
+include/bacnet/bactext.h
+include/bacnet/bactimevalue.h
+include/bacnet/basic/bbmd/h_bbmd.h
+include/bacnet/basic/bbmd6/h_bbmd6.h
+include/bacnet/basic/bbmd6/vmac.h
+include/bacnet/basic/binding/address.h
+include/bacnet/basic/client/bac-data.h
+include/bacnet/basic/client/bac-rw.h
+include/bacnet/basic/client/bac-task.h
+include/bacnet/basic/npdu/h_npdu.h
+include/bacnet/basic/npdu/h_routed_npdu.h
+include/bacnet/basic/npdu/s_router.h
+include/bacnet/basic/object/acc.h
+include/bacnet/basic/object/access_credential.h
+include/bacnet/basic/object/access_door.h
+include/bacnet/basic/object/access_point.h
+include/bacnet/basic/object/access_rights.h
+include/bacnet/basic/object/access_user.h
+include/bacnet/basic/object/access_zone.h
+include/bacnet/basic/object/ai.h
+include/bacnet/basic/object/ao.h
+include/bacnet/basic/object/av.h
+include/bacnet/basic/object/bacfile.h
+include/bacnet/basic/object/bi.h
+include/bacnet/basic/object/bo.h
+include/bacnet/basic/object/bv.h
+include/bacnet/basic/object/channel.h
+include/bacnet/basic/object/color_object.h
+include/bacnet/basic/object/color_temperature.h
+include/bacnet/basic/object/command.h
+include/bacnet/basic/object/credential_data_input.h
+include/bacnet/basic/object/csv.h
+include/bacnet/basic/object/device.h
+include/bacnet/basic/object/iv.h
+include/bacnet/basic/object/lc.h
+include/bacnet/basic/object/lo.h
+include/bacnet/basic/object/lsp.h
+include/bacnet/basic/object/ms-input.h
+include/bacnet/basic/object/mso.h
+include/bacnet/basic/object/msv.h
+include/bacnet/basic/object/nc.h
+include/bacnet/basic/object/netport.h
+include/bacnet/basic/object/objects.h
+include/bacnet/basic/object/osv.h
+include/bacnet/basic/object/piv.h
+include/bacnet/basic/object/schedule.h
+include/bacnet/basic/object/trendlog.h
+include/bacnet/basic/service/h_alarm_ack.h
+include/bacnet/basic/service/h_apdu.h
+include/bacnet/basic/service/h_arf.h
+include/bacnet/basic/service/h_arf_a.h
+include/bacnet/basic/service/h_awf.h
+include/bacnet/basic/service/h_ccov.h
+include/bacnet/basic/service/h_cov.h
+include/bacnet/basic/service/h_create_object.h
+include/bacnet/basic/service/h_dcc.h
+include/bacnet/basic/service/h_delete_object.h
+include/bacnet/basic/service/h_gas_a.h
+include/bacnet/basic/service/h_get_alarm_sum.h
+include/bacnet/basic/service/h_getevent.h
+include/bacnet/basic/service/h_getevent_a.h
+include/bacnet/basic/service/h_iam.h
+include/bacnet/basic/service/h_ihave.h
+include/bacnet/basic/service/h_list_element.h
+include/bacnet/basic/service/h_lso.h
+include/bacnet/basic/service/h_noserv.h
+include/bacnet/basic/service/h_rd.h
+include/bacnet/basic/service/h_rp.h
+include/bacnet/basic/service/h_rp_a.h
+include/bacnet/basic/service/h_rpm.h
+include/bacnet/basic/service/h_rpm_a.h
+include/bacnet/basic/service/h_rr.h
+include/bacnet/basic/service/h_rr_a.h
+include/bacnet/basic/service/h_ts.h
+include/bacnet/basic/service/h_ucov.h
+include/bacnet/basic/service/h_upt.h
+include/bacnet/basic/service/h_whohas.h
+include/bacnet/basic/service/h_whois.h
+include/bacnet/basic/service/h_wp.h
+include/bacnet/basic/service/h_wpm.h
+include/bacnet/basic/service/s_abort.h
+include/bacnet/basic/service/s_ack_alarm.h
+include/bacnet/basic/service/s_arfs.h
+include/bacnet/basic/service/s_awfs.h
+include/bacnet/basic/service/s_cevent.h
+include/bacnet/basic/service/s_cov.h
+include/bacnet/basic/service/s_create_object.h
+include/bacnet/basic/service/s_dcc.h
+include/bacnet/basic/service/s_delete_object.h
+include/bacnet/basic/service/s_error.h
+include/bacnet/basic/service/s_get_alarm_sum.h
+include/bacnet/basic/service/s_get_event.h
+include/bacnet/basic/service/s_getevent.h
+include/bacnet/basic/service/s_iam.h
+include/bacnet/basic/service/s_ihave.h
+include/bacnet/basic/service/s_list_element.h
+include/bacnet/basic/service/s_lso.h
+include/bacnet/basic/service/s_rd.h
+include/bacnet/basic/service/s_readrange.h
+include/bacnet/basic/service/s_rp.h
+include/bacnet/basic/service/s_rpm.h
+include/bacnet/basic/service/s_ts.h
+include/bacnet/basic/service/s_uevent.h
+include/bacnet/basic/service/s_upt.h
+include/bacnet/basic/service/s_whohas.h
+include/bacnet/basic/service/s_whois.h
+include/bacnet/basic/service/s_wp.h
+include/bacnet/basic/service/s_wpm.h
+include/bacnet/basic/services.h
+include/bacnet/basic/sys/bigend.h
+include/bacnet/basic/sys/color_rgb.h
+include/bacnet/basic/sys/days.h
+include/bacnet/basic/sys/debug.h
+include/bacnet/basic/sys/fifo.h
+include/bacnet/basic/sys/filename.h
+include/bacnet/basic/sys/key.h
+include/bacnet/basic/sys/keylist.h
+include/bacnet/basic/sys/linear.h
+include/bacnet/basic/sys/mstimer.h
+include/bacnet/basic/sys/platform.h
+include/bacnet/basic/sys/ringbuf.h
+include/bacnet/basic/sys/sbuf.h
+include/bacnet/basic/tsm/tsm.h
+include/bacnet/basic/ucix/ucix.h
+include/bacnet/bits.h
+include/bacnet/bytes.h
+include/bacnet/config.h
+include/bacnet/cov.h
+include/bacnet/create_object.h
+include/bacnet/credential_authentication_factor.h
+include/bacnet/dailyschedule.h
+include/bacnet/datalink/arcnet.h
+include/bacnet/datalink/bacsec.h
+include/bacnet/datalink/bip.h
+include/bacnet/datalink/bip6.h
+include/bacnet/datalink/bvlc.h
+include/bacnet/datalink/bvlc6.h
+include/bacnet/datalink/cobs.h
+include/bacnet/datalink/crc.h
+include/bacnet/datalink/datalink.h
+include/bacnet/datalink/dlenv.h
+include/bacnet/datalink/dlmstp.h
+include/bacnet/datalink/ethernet.h
+include/bacnet/datalink/mstp.h
+include/bacnet/datalink/mstpdef.h
+include/bacnet/datalink/mstptext.h
+include/bacnet/datetime.h
+include/bacnet/dcc.h
+include/bacnet/delete_object.h
+include/bacnet/event.h
+include/bacnet/get_alarm_sum.h
+include/bacnet/getevent.h
+include/bacnet/hostnport.h
+include/bacnet/iam.h
+include/bacnet/ihave.h
+include/bacnet/indtext.h
+include/bacnet/lighting.h
+include/bacnet/list_element.h
+include/bacnet/lso.h
+include/bacnet/memcopy.h
+include/bacnet/npdu.h
+include/bacnet/property.h
+include/bacnet/proplist.h
+include/bacnet/ptransfer.h
+include/bacnet/rd.h
+include/bacnet/readrange.h
+include/bacnet/reject.h
+include/bacnet/rp.h
+include/bacnet/rpm.h
+include/bacnet/timestamp.h
+include/bacnet/timesync.h
+include/bacnet/version.h
+include/bacnet/weeklyschedule.h
+include/bacnet/whohas.h
+include/bacnet/whois.h
+include/bacnet/wp.h
+include/bacnet/wpm.h
+include/bacport.h
+include/stdbool.h
+lib/cmake/bacnet-stack/bacnet-stackConfig.cmake
+lib/cmake/bacnet-stack/bacnet-stackConfigVersion.cmake
+lib/cmake/bacnet-stack/bacnet-stackTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/bacnet-stack/bacnet-stackTargets.cmake
+lib/libbacnet-stack.a
+@dir include/bacnet/basic/object/client
+@dir include/bacnet/basic/object/gateway