summaryrefslogtreecommitdiff
path: root/net-mgmt/ipfixcol2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/ipfixcol2/Makefile')
-rw-r--r--net-mgmt/ipfixcol2/Makefile8
1 files 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 \