# $NetBSD: options.mk,v 1.5 2025/10/09 07:57:50 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.frr
PKG_SUPPORTED_OPTIONS=	doc
PKG_SUGGESTED_OPTIONS=	doc

PLIST_VARS+=		doc

.include "../../mk/bsd.options.mk"

# Package-specific option-handling

###
### doc/man support
###
.if !empty(PKG_OPTIONS:Mdoc)
USE_TOOLS+=			makeinfo
CONFIGURE_ARGS+=		--enable-doc-html
PYTHON_VERSIONS_INCOMPATIBLE=	310 # py-sphinx
TOOL_DEPENDS+=			${PYPKGPREFIX}-sphinx>=8.2:../../textproc/py-sphinx
TOOL_DEPENDS+=			${PYPKGPREFIX}-sphinx-rtd-theme>=3.0.2:../../textproc/py-sphinx-rtd-theme
PLIST.doc=			yes
INFO_FILES=			yes
.else
CONFIGURE_ARGS+=		--disable-doc
.endif
