git: 0b4b7920bd42 - main - net/gssdp14: Add gssdp14 1.4.0.1 (copied from gssdp)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 26 Apr 2022 15:04:02 UTC
The branch main has been updated by sunpoet:

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

commit 0b4b7920bd420b2f7e50b412fb44a12c06c6d491
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-26 14:45:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-26 15:01:08 +0000

    net/gssdp14: Add gssdp14 1.4.0.1 (copied from gssdp)
    
    - Add PORTSCOUT
---
 net/Makefile                                       |  1 +
 net/gssdp14/Makefile                               | 40 ++++++++++++++++++++++
 net/gssdp14/distinfo                               |  3 ++
 net/gssdp14/files/patch-libgssdp-gssdp-client.h    | 12 +++++++
 .../files/patch-libgssdp-gssdp-resource-group.h    | 10 ++++++
 net/gssdp14/pkg-descr                              |  3 ++
 net/gssdp14/pkg-plist                              | 15 ++++++++
 7 files changed, 84 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index e7e5674fc50c..83f2635e9370 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -219,6 +219,7 @@
     SUBDIR += gsocket
     SUBDIR += gspoof
     SUBDIR += gssdp
+    SUBDIR += gssdp14
     SUBDIR += gstreamer1-plugins-libmms
     SUBDIR += gstreamer1-plugins-srtp
     SUBDIR += gtk-vnc
diff --git a/net/gssdp14/Makefile b/net/gssdp14/Makefile
new file mode 100644
index 000000000000..ebd891cfb0e8
--- /dev/null
+++ b/net/gssdp14/Makefile
@@ -0,0 +1,40 @@
+# Created by: Martin Wilke <miwi@FreeBSD.org>
+
+PORTNAME=	gssdp
+PORTVERSION=	1.4.0.1
+CATEGORIES=	net
+MASTER_SITES=	GNOME
+PKGNAMESUFFIX=	14
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Framework for UPnP devices
+
+LICENSE=	LGPL20
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	glib>=2.54:devel/glib20 \
+		gobject-introspection>=1.36:devel/gobject-introspection \
+		libsoup>=2.26.1:devel/libsoup
+LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup
+
+USES=		gnome meson pkgconfig tar:xz
+USE_GNOME=	glib20 introspection:build
+
+MESON_ARGS=	-Dexamples=false -Dgtk_doc=false -Dintrospection=true
+USE_LDCONFIG=	yes
+
+CONFLICTS_INSTALL=	gssdp
+
+PORTSCOUT=	limit:^1\.4\.
+
+OPTIONS_DEFINE=	SNIFFER VAPI
+OPTIONS_SUB=	yes
+SNIFFER_DESC=	Build graphical SSDP sniffer
+
+SNIFFER_BUILD_DEPENDS=	gtk4>=4:x11-toolkits/gtk40
+SNIFFER_MESON_TRUE=	sniffer
+SNIFFER_USE=		GNOME=gtk40
+VAPI_BUILD_DEPENDS=	vala>=0.20:lang/vala
+VAPI_MESON_TRUE=	vapi
+
+.include <bsd.port.mk>
diff --git a/net/gssdp14/distinfo b/net/gssdp14/distinfo
new file mode 100644
index 000000000000..e8977861a33b
--- /dev/null
+++ b/net/gssdp14/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632227466
+SHA256 (gssdp-1.4.0.1.tar.xz) = 8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582
+SIZE (gssdp-1.4.0.1.tar.xz) = 1229264
diff --git a/net/gssdp14/files/patch-libgssdp-gssdp-client.h b/net/gssdp14/files/patch-libgssdp-gssdp-client.h
new file mode 100644
index 000000000000..2d02e0443a2a
--- /dev/null
+++ b/net/gssdp14/files/patch-libgssdp-gssdp-client.h
@@ -0,0 +1,12 @@
+--- libgssdp/gssdp-client.h.orig	2018-12-10 21:21:06 UTC
++++ libgssdp/gssdp-client.h
+@@ -31,9 +31,6 @@ G_BEGIN_DECLS
+ 
+ G_DECLARE_DERIVABLE_TYPE (GSSDPClient, gssdp_client, GSSDP, CLIENT, GObject)
+ 
+-typedef struct _GSSDPClient GSSDPClient;
+-typedef struct _GSSDPClientClass GSSDPClientClass;
+-
+ /**
+  * GSSDPUDAVersion:
+  * @GSSDP_UDA_VERSION_UNSPECIFIED: When creating a client, use the default version
diff --git a/net/gssdp14/files/patch-libgssdp-gssdp-resource-group.h b/net/gssdp14/files/patch-libgssdp-gssdp-resource-group.h
new file mode 100644
index 000000000000..f440f0134db6
--- /dev/null
+++ b/net/gssdp14/files/patch-libgssdp-gssdp-resource-group.h
@@ -0,0 +1,10 @@
+--- libgssdp/gssdp-resource-group.h.orig	2018-11-30 23:17:04 UTC
++++ libgssdp/gssdp-resource-group.h
+@@ -44,7 +44,6 @@ struct _GSSDPResourceGroupClass {
+         void (* _gssdp_reserved3) (void);
+         void (* _gssdp_reserved4) (void);
+ };
+-typedef struct _GSSDPResourceGroupClass GSSDPResourceGroupClass;
+ 
+ GSSDPResourceGroup *
+ gssdp_resource_group_new                 (GSSDPClient        *client);
diff --git a/net/gssdp14/pkg-descr b/net/gssdp14/pkg-descr
new file mode 100644
index 000000000000..e428b3dca1e4
--- /dev/null
+++ b/net/gssdp14/pkg-descr
@@ -0,0 +1,3 @@
+A GObject-based API for handling resource discovery and announcement over SSDP.
+
+WWW: https://wiki.gnome.org/Projects/GUPnP
diff --git a/net/gssdp14/pkg-plist b/net/gssdp14/pkg-plist
new file mode 100644
index 000000000000..7fd69be16c69
--- /dev/null
+++ b/net/gssdp14/pkg-plist
@@ -0,0 +1,15 @@
+%%SNIFFER%%bin/gssdp-device-sniffer
+include/gssdp-1.2/libgssdp/gssdp-client.h
+include/gssdp-1.2/libgssdp/gssdp-enums.h
+include/gssdp-1.2/libgssdp/gssdp-error.h
+include/gssdp-1.2/libgssdp/gssdp-resource-browser.h
+include/gssdp-1.2/libgssdp/gssdp-resource-group.h
+include/gssdp-1.2/libgssdp/gssdp.h
+lib/girepository-1.0/GSSDP-1.2.typelib
+lib/libgssdp-1.2.so
+lib/libgssdp-1.2.so.0
+lib/libgssdp-1.2.so.0.104.0
+libdata/pkgconfig/gssdp-1.2.pc
+share/gir-1.0/GSSDP-1.2.gir
+%%VAPI%%share/vala/vapi/gssdp-1.2.deps
+%%VAPI%%share/vala/vapi/gssdp-1.2.vapi