git: d0cd7804e16c - main - devel/aws-c-mqtt: Add new port

From: Danilo Egea Gondolfo <danilo_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 14:09:32 UTC
The branch main has been updated by danilo:

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

commit d0cd7804e16c752d8155bad11c1ad71a93ec3bb9
Author:     Danilo Egea Gondolfo <danilo@FreeBSD.org>
AuthorDate: 2021-10-23 12:40:50 +0000
Commit:     Danilo Egea Gondolfo <danilo@FreeBSD.org>
CommitDate: 2021-10-25 14:04:50 +0000

    devel/aws-c-mqtt: Add new port
    
    This library contains an MQTT implementation that is simple
    and easy to use, but also quite powerful and low on unnecessary copies.
---
 devel/aws-c-mqtt/Makefile  | 30 ++++++++++++++++++++++++++++++
 devel/aws-c-mqtt/distinfo  |  3 +++
 devel/aws-c-mqtt/pkg-descr |  4 ++++
 devel/aws-c-mqtt/pkg-plist |  9 +++++++++
 4 files changed, 46 insertions(+)

diff --git a/devel/aws-c-mqtt/Makefile b/devel/aws-c-mqtt/Makefile
new file mode 100644
index 000000000000..b3f389061477
--- /dev/null
+++ b/devel/aws-c-mqtt/Makefile
@@ -0,0 +1,30 @@
+# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
+
+PORTNAME=	aws-c-mqtt
+PORTVERSION=	0.7.8
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+
+MAINTAINER=	danilo@FreeBSD.org
+COMMENT=	C99 implementation of the MQTT 3.1.1 specification
+
+LICENSE=	APACHE20
+
+LIB_DEPENDS=	libaws-c-common.so:devel/aws-c-common \
+		libaws-c-cal.so:security/aws-c-cal \
+		libaws-c-io.so:devel/aws-c-io \
+		libaws-c-compression.so:devel/aws-c-compression \
+		libaws-c-http.so:devel/aws-c-http \
+		libs2n.so:security/s2n
+
+USES=		cmake compiler:c11 ssl
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	awslabs
+
+CMAKE_ARGS+=	-DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON \
+		-DCMAKE_PREFIX_PATH=${LOCALBASE}
+
+USE_LDCONFIG=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/aws-c-mqtt/distinfo b/devel/aws-c-mqtt/distinfo
new file mode 100644
index 000000000000..c9d47b9b49b0
--- /dev/null
+++ b/devel/aws-c-mqtt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634978303
+SHA256 (awslabs-aws-c-mqtt-v0.7.8_GH0.tar.gz) = bf5ed63706f3f1aed86a878462fac78e5f045dfc34567bfb86c38f8b9d9d51ef
+SIZE (awslabs-aws-c-mqtt-v0.7.8_GH0.tar.gz) = 96751
diff --git a/devel/aws-c-mqtt/pkg-descr b/devel/aws-c-mqtt/pkg-descr
new file mode 100644
index 000000000000..37b1f2a277ce
--- /dev/null
+++ b/devel/aws-c-mqtt/pkg-descr
@@ -0,0 +1,4 @@
+This library contains an MQTT implementation that is simple
+and easy to use, but also quite powerful and low on unnecessary copies.
+
+WWW: https://github.com/awslabs/aws-c-mqtt
diff --git a/devel/aws-c-mqtt/pkg-plist b/devel/aws-c-mqtt/pkg-plist
new file mode 100644
index 000000000000..7a893f5f17a4
--- /dev/null
+++ b/devel/aws-c-mqtt/pkg-plist
@@ -0,0 +1,9 @@
+include/aws/mqtt/client.h
+include/aws/mqtt/exports.h
+include/aws/mqtt/mqtt.h
+include/aws/mqtt/private/mqtt_client_test_helper.h
+lib/aws-c-mqtt/cmake/aws-c-mqtt-config.cmake
+lib/aws-c-mqtt/cmake/shared/aws-c-mqtt-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/aws-c-mqtt/cmake/shared/aws-c-mqtt-targets.cmake
+lib/libaws-c-mqtt.so
+lib/libaws-c-mqtt.so.1.0.0