git: ede5e9efcd84 - 2025Q3 - net-mgmt/ipfixcol2: Fix build on 13.x

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 10 Jul 2025 00:20:23 UTC
The branch 2025Q3 has been updated by vvd:

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

commit ede5e9efcd84e65a1ece7fcce370221dbae57c80
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-07-10 00:16:58 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-07-10 00:20:17 +0000

    net-mgmt/ipfixcol2: Fix build on 13.x
    
    PR:             285757
    Approved by:    Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> (maintainer, implicit - fix build)
    Co-authored-by: Chad Jacob Milios <milios@ccsys.com>
    MFH:            2025Q3
    
    (cherry picked from commit 928a3c361cd29524a46213ab70d8e6e2f9c6c754)
---
 net-mgmt/ipfixcol2/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/ipfixcol2/Makefile b/net-mgmt/ipfixcol2/Makefile
index 08b01f0b557d..a167ea4b36f2 100644
--- a/net-mgmt/ipfixcol2/Makefile
+++ b/net-mgmt/ipfixcol2/Makefile
@@ -10,8 +10,6 @@ WWW=		https://github.com/CESNET/ipfixcol2
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_FreeBSD_13=	Requires sys/timerfd.h
-
 ONLY_FOR_ARCHS=		aarch64 amd64
 ONLY_FOR_ARCHS_REASON=	Requires 64bit time_t: static_assert(sizeof(uint64_t) == sizeof(time_t), "Assumed that time_t is uint64_t, but it's not")
 
@@ -36,6 +34,12 @@ PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	EXAMPLES
 
+# XXX Drop after FreeBSD 13 EOL around 2026-04-30
+.if !exists(/usr/include/sys/timerfd.h)
+CFLAGS+=	`pkg-config --cflags epoll-shim`
+LDFLAGS+=	`pkg-config --libs epoll-shim`
+.endif
+
 post-install:
 	${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/run/${PORTNAME}
 	${INSTALL_DATA} ${WRKSRC}/doc/data/configs/udp2json.xml \