#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright (c) 2014 Alexander Pyhalov. All rights reserved
# Copyright (c) 2020 Michal Nowak
# Copyright (c) 2023 Klaus Ziegler
#

USE_DEFAULT_TEST_TRANSFORMS= yes

include ../../../make-rules/shared-macros.mk

COMPONENT_NAME=		libgsasl
COMPONENT_VERSION=	1.10.0
COMPONENT_REVISION=	1
COMPONENT_PROJECT_URL=	https://www.gnu.org/software/gsasl/
COMPONENT_SUMMARY=	Implementation of the Simple Authentication and Security Layer framework 
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_URL=	https://ftp.gnu.org/gnu/gsasl/$(COMPONENT_ARCHIVE)
COMPONENT_ARCHIVE_HASH=	\
	sha256:f1b553384dedbd87478449775546a358d6f5140c15cccc8fb574136fdc77329f
COMPONENT_FMRI=		library/libgsasl
COMPONENT_CLASSIFICATION= System/Libraries
COMPONENT_LICENSE=	GPLv3
COMPONENT_LICENSE_FILE=	COPYING

include $(WS_MAKE_RULES)/common.mk

CFLAGS += -I/usr/include/idn
CFLAGS += -Wno-error=implicit-function-declaration
CFLAGS += -Wno-error=incompatible-pointer-types

CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-gssapi-impl=mit

# Auto-generated dependencies
REQUIRED_PACKAGES += library/libidn
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/security/gss
