git: a8010d006b45 - main - net/freerdp: limit PORTSCOUT to 2.x

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 11 Jan 2024 09:28:38 UTC
The branch main has been updated by vvd:

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

commit a8010d006b4558272d0bece072142f35b68f4235
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-01-11 09:25:37 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-01-11 09:25:37 +0000

    net/freerdp: limit PORTSCOUT to 2.x
    
    While here replace PORTVERSION with DISTVERSION in variables for plist
    
    Approved by:    arrowd (mentor, implicit)
---
 net/freerdp/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/net/freerdp/Makefile b/net/freerdp/Makefile
index a04784e37ae9..cae02225f62b 100644
--- a/net/freerdp/Makefile
+++ b/net/freerdp/Makefile
@@ -26,8 +26,8 @@ LIB_DEPENDS=	libepoll-shim.so:devel/libepoll-shim
 USES=		alias cmake compiler:c++11-lib cpe localbase pathfix pkgconfig ssl
 USE_LDCONFIG=	yes
 
-PATCHVERSION=	${PORTVERSION}
-MAJORVERSION=	${PORTVERSION:R:R}
+PATCHVERSION=	${DISTVERSION}
+MAJORVERSION=	${DISTVERSION:R:R}
 
 CMAKE_ARGS+=	${CMAKE_ARGS_${ARCH}}
 CMAKE_ON=	WITH_CHANNELS WITH_OPENSSL WITH_OSS WITH_ZLIB CHANNEL_URBDRC_CLIENT
@@ -40,6 +40,8 @@ CMAKE_OFF=	WITH_DSP_EXPERIMENTAL WITH_GPROF WITH_GSSAPI WITH_GSTREAMER_0_10 WITH
 PLIST_SUB+=	PATCHVERSION="${PATCHVERSION}"
 PLIST_SUB+=	MAJORVERSION="${MAJORVERSION}"
 
+PORTSCOUT=	limit:^2\.
+
 OPTIONS_DEFINE=		ALSA BROKENFOCUS CUPS FAAC FAAD FFMPEG GSM GSTREAMER \
 			ICU JPEG LAME MANPAGES OPENH264 PCSC \
 			PULSEAUDIO SOXR WAYLAND X11