git: 0b4d54a945c6 - main - net/ntpsec: Add REFCLOCKS option

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 06 Nov 2023 22:25:54 UTC
The branch main has been updated by yuri:

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

commit 0b4d54a945c6020f0159f6523343c4e02d905b80
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-06 22:22:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-06 22:25:52 +0000

    net/ntpsec: Add REFCLOCKS option
    
    PR:             274944
    Reported by:    celkins <carl@elkins.me.uk>
---
 net/ntpsec/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/net/ntpsec/Makefile b/net/ntpsec/Makefile
index 6a9c91c5e07c..6cd7cef1762f 100644
--- a/net/ntpsec/Makefile
+++ b/net/ntpsec/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	ntpsec
 DISTVERSIONPREFIX=	NTPsec_
 DISTVERSION=	1_2_2a
+PORTREVISION=	1
 CATEGORIES=	net
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -24,11 +25,15 @@ MAKE_ENV=	NOSYNC=1 # workaround for the console problem: https://gitlab.com/NTPs
 
 TEST_TARGET=	check
 
-OPTIONS_DEFINE=			DOCS
+OPTIONS_DEFINE=			DOCS REFCLOCKS
+OPTIONS_DEFAULT=		REFCLOCKS
 
 DOCS_CONFIGURE_ENABLE=	doc
 DOCS_BUILD_DEPENDS=	asciidoctor:textproc/rubygem-asciidoctor # alternatively ntpsec can use asciidoc:textproc/asciidoc but it prefers asciidoctor
 
+REFCLOCKS_DESC=	Enable all refclocks
+REFCLOCKS_VARS=	CONFIGURE_ARGS+=--refclock=all
+
 PORTSCOUT=	limit:^\d+\. # prevent alpha-numeric strings
 
 post-install: # autoplist: plist varies depending on the python version