Files
ports/net/ptpd2/Makefile
T
Steven Kreuzer 09e3d68290 net/ptpd2: Fix build with net-snmp
net-snmp-config --cflags injects -Werror=declaration-after-statement
which causes builds to fail as the source has variable declarations
after statements (valid in C99 but not C89).

Downgrade this from a fatal error to a warning
2026-01-17 20:49:42 -05:00

43 lines
894 B
Makefile

PORTNAME= ptpd
DISTVERSION= 2.3.1
PORTREVISION= 2
CATEGORIES= net
PKGNAMESUFFIX= 2
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Implementation of the precision time protocol IEEE 1588-2008
WWW= https://github.com/ptpd/ptpd
LICENSE= BSD2CLAUSE
CONFLICTS= ptpd2-devel.*
ETCDIR= ${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}
USES= autoreconf gmake libtool
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
USE_GITHUB= yes
GH_TAGNAME= d27a6e0
USE_RC_SUBR= ptpd2
PORTDOCS= *
OPTIONS_DEFINE= DOCS SNMP
OPTIONS_DEFAULT=SNMP
SNMP_CONFIGURE_ENABLE= snmp
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
CFLAGS+= -Wno-error=declaration-after-statement
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${CP} ${FILESDIR}/*.sample ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>