PORTNAME=	kronosnet
PORTVERSION=	1.26
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	https://kronosnet.org/releases/

MAINTAINER=	egypcio@FreeBSD.org
COMMENT=	Network abstraction layer designed for high availability
WWW=		https://kronosnet.org/

LICENSE=	GPLv2

LIB_DEPENDS=	liblzo2.so:archivers/lzo2 \
		liblz4.so:archivers/liblz4 \
		libnspr4.so:devel/nspr \
		libnss3.so:security/nss \
		libqb.so:devel/libqb \
		libzstd.so:archivers/zstd

USES=		autoreconf gmake gnome localbase libtool pkgconfig ssl
USE_GNOME=	libxml2
USE_BINUTILS=	yes
USE_GCC=	yes
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-man
LDFLAGS+=	-B${LOCALBASE}/bin

INSTALL_TARGET=	install-strip
TEST_TARGET=	check

OPTIONS_DEFINE=	DOCS
OPTIONS_SUB=	yes

.include <bsd.port.options.mk>

.if ${SSL_DEFAULT} == base
CONFIGURE_ENV=	openssl_CFLAGS="-I/usr/include" openssl_LIBS="-lcrypto"
.endif

.include <bsd.port.mk>
