git: a92c296e945c - main - audio/gmtp: switch to gtk3 only

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 10 Jun 2022 06:50:30 UTC
The branch main has been updated by bapt:

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

commit a92c296e945c7fec7d9d7cf7b03f1d8e70570bbd
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-06-10 06:48:00 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-06-10 06:50:28 +0000

    audio/gmtp: switch to gtk3 only
    
    gconf is being phased out of the ports tree, and the gtk2 version
    depends on gconf, switch to gtk3 and removing the option, allows to
    drop gconf from the dependency list
    
    Approved by:    maintainer
---
 audio/gmtp/Makefile | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/audio/gmtp/Makefile b/audio/gmtp/Makefile
index 212f06466204..ad73d49d0ede 100644
--- a/audio/gmtp/Makefile
+++ b/audio/gmtp/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gmtp
 PORTVERSION=	1.3.11
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	audio
 MASTER_SITES=	SF/${PORTNAME}/gMTP-${PORTVERSION}/
 
@@ -13,13 +13,17 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libmtp.so:multimedia/libmtp \
 		libid3tag.so:audio/libid3tag \
 		libFLAC.so:audio/flac \
-		libvorbis.so:audio/libvorbis
+		libvorbis.so:audio/libvorbis \
+		libfreetype.so:print/freetype2 \
+		libfontconfig.so:x11-fonts/fontconfig
 
 USES=		dos2unix gmake gnome localbase pkgconfig
 DOS2UNIX_FILES=	COPYING
-USE_GNOME=	cairo gdkpixbuf2 glib20
+USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
+GLIB_SCHEMAS=	org.gnome.gmtp.gschema.xml
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-gtk3
 
 # PR: 244712
 # Workaround to fix linking with Clang >= 11 and GCC >= 10 which both set
@@ -30,19 +34,8 @@ CFLAGS+=	-fcommon
 PORTDOCS=	AUTHORS ChangeLog README
 
 OPTIONS_DEFINE=	DOCS NLS
-OPTIONS_RADIO=	GTK
-OPTIONS_RADIO_GTK=	GTK2 GTK3
-OPTIONS_DEFAULT=	GTK2
 OPTIONS_SUB=		yes
 
-GTK3_USE=		GNOME=gtk30
-GTK3_CONFIGURE_WITH=	gtk3
-GTK3_VARS=		GLIB_SCHEMAS=org.gnome.gmtp.gschema.xml
-GTK2_LIB_DEPENDS=	libfreetype.so:print/freetype2 \
-			libfontconfig.so:x11-fonts/fontconfig
-GTK2_USE=		GNOME=gtk20,gconf2
-GTK2_CONFIGURE_WITH=	gtk2
-GTK2_VARS=		GCONF_SCHEMAS=gmtp.schemas
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext