git: dc67034bf45d - main - math/octave-forge-mqtt: new port.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Fri, 28 Oct 2022 22:24:29 UTC
The branch main has been updated by stephen:

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

commit dc67034bf45df2c812f0c16baf41eb2b5039a174
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-28 22:23:51 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-28 22:23:51 +0000

    math/octave-forge-mqtt: new port.
    
    Basic Octave implementation of mqtt toolkit.
---
 math/Makefile                    |  1 +
 math/octave-forge-mqtt/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 math/octave-forge-mqtt/distinfo  |  3 +++
 math/octave-forge-mqtt/pkg-descr |  8 ++++++++
 4 files changed, 47 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index ebadaf71742c..5497cdc416e1 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -576,6 +576,7 @@
     SUBDIR += octave-forge-mechanics
     SUBDIR += octave-forge-miscellaneous
     SUBDIR += octave-forge-missing-functions
+    SUBDIR += octave-forge-mqtt
     SUBDIR += octave-forge-msh
     SUBDIR += octave-forge-multicore
     SUBDIR += octave-forge-mvn
diff --git a/math/octave-forge-mqtt/Makefile b/math/octave-forge-mqtt/Makefile
new file mode 100644
index 000000000000..24d7929bf259
--- /dev/null
+++ b/math/octave-forge-mqtt/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	octave-forge-mqtt
+PORTVERSION=	0.0.3
+CATEGORIES=	math
+MASTER_SITES=	SF
+MASTER_SITE_SUBDIR=octave-mqtt/v${PORTVERSION}
+DISTNAME=	octave-${OCTAVE_PKGNAME}-${PORTVERSION}
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		http://octave.sourceforge.net/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKDIR}/${OCTSRC}/COPYING
+
+LIB_DEPENDS+=	libpaho-mqtt3a.so:net/libpaho-mqtt3
+
+USES=		autoreconf
+
+# OCTSRC is the name of the directory of the package.
+# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
+
+OCTSRC=		${DISTNAME}
+
+WRKSRC=		${WRKDIR}/${OCTSRC}/src
+
+GNU_CONFIGURE=	yes
+CFLAGS+=	-I${LOCALBASE}/include
+
+.include "${.CURDIR}/../../Mk/bsd.octave.mk"
+
+post-build:
+	${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
+	cd ${WRKDIR} && ${TAR} cfz ${OCTAVE_DISTNAME}.tar.gz ${OCTSRC}
+
+.include <bsd.port.mk>
diff --git a/math/octave-forge-mqtt/distinfo b/math/octave-forge-mqtt/distinfo
new file mode 100644
index 000000000000..92a1122100ba
--- /dev/null
+++ b/math/octave-forge-mqtt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666995277
+SHA256 (octave-forge/octave-mqtt-0.0.3.tar.gz) = 9aff75a326ee50b63bacfddf4c9318c72a1c2a39e558ed5d347d43f17009da64
+SIZE (octave-forge/octave-mqtt-0.0.3.tar.gz) = 392407
diff --git a/math/octave-forge-mqtt/pkg-descr b/math/octave-forge-mqtt/pkg-descr
new file mode 100644
index 000000000000..9438c881ea30
--- /dev/null
+++ b/math/octave-forge-mqtt/pkg-descr
@@ -0,0 +1,8 @@
+The octave-forge package is the result of The GNU Octave Repositry project,
+which is intended to be a central location for custom scripts, functions and
+extensions for GNU Octave. contains the source for all the functions plus
+build and install scripts.
+
+This is mqtt.
+
+ Basic Octave implementation of mqtt toolkit.