git: c6ed5eb9f9a6 - main - net-im/libnice: unbreak with GUPNP enabled (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sat, 02 Dec 2023 14:21:38 UTC
The branch main has been updated by fluffy:

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

commit c6ed5eb9f9a6e0c9ddfa751845fe226f79947f2f
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-12-02 14:20:12 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-12-02 14:20:12 +0000

    net-im/libnice: unbreak with GUPNP enabled (+)
    
    net/gupnp-igd12 rest in peace, move to net/gupnp-igd
    
    Reported by:    poudriere failure
---
 net-im/libnice/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-im/libnice/Makefile b/net-im/libnice/Makefile
index aa1f48112211..ade7f95c1b38 100644
--- a/net-im/libnice/Makefile
+++ b/net-im/libnice/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libnice
 PORTVERSION=	0.1.21
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-im devel
 MASTER_SITES=	http://nice.freedesktop.org/releases/
 
@@ -23,7 +23,7 @@ INSTALL_TARGET=	install-strip
 OPTIONS_DEFINE=	GUPNP
 GUPNP_MESON_ENABLED=	gupnp
 GUPNP_DESC=	UPnP IGD port mapping support
-GUPNP_LIB_DEPENDS+=	libgupnp-igd-1.0.so:net/gupnp-igd12
+GUPNP_LIB_DEPENDS+=	libgupnp-igd-1.6.so:net/gupnp-igd
 
 MESON_ARGS+=-Dtests=disabled -Dgtk_doc=disabled -Dcrypto-library=openssl
 
@@ -34,4 +34,7 @@ MESON_ARGS+=-Dgstreamer=enabled
 MESON_ARGS+=-Dgstreamer=disabled
 .endif
 
+post-patch-GUPNP-on:
+	@${REINPLACE_CMD} -e 's|gupnp-igd-1.0|gupnp-igd-1.6|' ${WRKSRC}/meson.build
+
 .include <bsd.port.mk>