git: bec3162cc0d7 - main - net/mad_fcl: fix build on 15-CURRENT

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 28 Oct 2024 12:44:26 UTC
The branch main has been updated by fuz:

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

commit bec3162cc0d7607405ac59a6e6e93a03cfabfa3f
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-10-26 20:29:30 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-10-28 12:42:05 +0000

    net/mad_fcl: fix build on 15-CURRENT
    
    Link with -lutil to get ftime(), which was moved there in 15-CURRENT.
    This is harmless on older FreeBSD versions.
    
    While we are at it, define LICENSE.
    
    MFH:            2024Q4
---
 net/mad_fcl/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net/mad_fcl/Makefile b/net/mad_fcl/Makefile
index afcfff56eae3..0d4808daa12d 100644
--- a/net/mad_fcl/Makefile
+++ b/net/mad_fcl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mad_fcl
 PORTVERSION=	1.7
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://mad.cs.tut.fi/download/
 DISTNAME=	${PORTNAME}_v${PORTVERSION}_src
@@ -8,6 +9,9 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	File Delivery over Unidirectional Transport implementation
 WWW=		http://mad.cs.tut.fi/
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENCE.TXT
+
 LIB_DEPENDS=	libexpat.so:textproc/expat2 \
 		libcurl.so:ftp/curl
 
@@ -17,7 +21,7 @@ MAKE_JOBS_UNSAFE=	yes
 
 CFLAGS+=	-DHAVE_SYS_TYPES_H -DHAVE_SYS_SELECT_H -DHAVE_UNISTD_H \
 		-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -pthread
+LDFLAGS+=	-L${LOCALBASE}/lib -pthread -lutil
 
 PORTDOCS=	README.TXT
 PORTEXAMPLES=	fdt-example.xml flute-sdp-example.sdp