git: 814fca7b52d8 - main - security/libssh: Add OPTIONS for other Kerberos implementations

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Thu, 30 Jan 2025 18:05:07 UTC
The branch main has been updated by 0mp:

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

commit 814fca7b52d84494926efb89ce89198df944946d
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-01-30 17:59:46 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-01-30 18:04:43 +0000

    security/libssh: Add OPTIONS for other Kerberos implementations
    
    PR:             282601
    Reviewed by:    sunpoet
    Approved by:    maintainer timeout
    Sponsored by:   Klara, Inc.
    Co-authored-by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
---
 security/libssh/Makefile | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/security/libssh/Makefile b/security/libssh/Makefile
index 60f1ea786a34..ee1c50838791 100644
--- a/security/libssh/Makefile
+++ b/security/libssh/Makefile
@@ -50,11 +50,19 @@ CMAKE_ON=	BUILD_SHARED_LIBS \
 CMAKE_TESTING_ON=	UNIT_TESTING
 USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	GSSAPI OPENSSL STATIC
-OPTIONS_DEFAULT=GSSAPI OPENSSL STATIC
+OPTIONS_DEFINE=	OPENSSL STATIC
+OPTIONS_SINGLE=	GSSAPI
+OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
+OPTIONS_DEFAULT=GSSAPI_BASE OPENSSL STATIC
 OPTIONS_SUB=	yes
 
-GSSAPI_CMAKE_BOOL=	WITH_GSSAPI
+GSSAPI_BASE_CMAKE_ON=	-DKRB5_CONFIG=${KRB5CONFIG} -DWITH_GSSAPI=ON
+GSSAPI_BASE_USES=	gssapi:base,flags
+GSSAPI_HEIMDAL_CMAKE_ON=-DKRB5_CONFIG=${KRB5CONFIG} -DWITH_GSSAPI=ON
+GSSAPI_HEIMDAL_USES=	gssapi:heimdal,flags
+GSSAPI_MIT_CMAKE_ON=	-DKRB5_CONFIG=${KRB5CONFIG} -DWITH_GSSAPI=ON
+GSSAPI_MIT_USES=	gssapi:mit,flags
+GSSAPI_NONE_CMAKE_BOOL_OFF=	WITH_GSSAPI
 OPENSSL_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenSSL
 OPENSSL_USES=		ssl
 STATIC_CMAKE_BOOL=	BUILD_STATIC_LIB