git: fe2317c01af4 - main - net-mgmt/mrtg: fix support for GD_PORT

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Fri, 26 May 2023 18:12:22 UTC
The branch main has been updated by dinoex:

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

commit fe2317c01af4ef0138a6000c58c3163b0840503c
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2023-05-26 18:12:01 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2023-05-26 18:12:01 +0000

    net-mgmt/mrtg: fix support for GD_PORT
    
    take maintainership
---
 net-mgmt/mrtg/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/mrtg/Makefile b/net-mgmt/mrtg/Makefile
index c26e60cbec53..372dc96f42b3 100644
--- a/net-mgmt/mrtg/Makefile
+++ b/net-mgmt/mrtg/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mrtg
 PORTVERSION=	2.17.10
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://oss.oetiker.ch/mrtg/pub/ \
@@ -7,18 +8,21 @@ MASTER_SITES=	http://oss.oetiker.ch/mrtg/pub/ \
 		ftp://ftp.nstu.ru/pub/sources/nettools/monitoring/ \
 		ftp://ftp.chg.ru/pub/networking/monitoring/mrtg/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	Multi-router traffic grapher
 WWW=		https://oss.oetiker.ch/mrtg/
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	libgd.so:graphics/gd \
+LIB_DEPENDS=	libgd.so:${GD_PORT} \
 		libpng16.so:graphics/png
 RUN_DEPENDS=	p5-SNMP_Session>=0:net-mgmt/p5-SNMP_Session
 
 USES=		perl5 shebangfix
 
+# override with languages specific gd fonts
+GD_PORT?=	graphics/gd
+
 CONFIGURE_ARGS=	--with-gd-lib=${LOCALBASE}/lib \
 		--with-gd-inc=${LOCALBASE}/include