PORTNAME=	protobuf-c
DISTVERSION=	1.5.1
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	https://github.com/protobuf-c/protobuf-c/releases/download/v${DISTVERSION}/

MAINTAINER=	truckman@FreeBSD.org
COMMENT=	Code generator and libraries to use Protocol Buffers from pure C
WWW=		https://github.com/protobuf-c/protobuf-c

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libabsl_log_internal_check_op.so:devel/abseil \
		libprotobuf.so:devel/protobuf

USES=		compiler:c++17-lang gmake libtool pkgconfig

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

INSTALL_TARGET=	install-strip
TEST_TARGET=	check
USE_CXXSTD=	c++17
PORTDOCS=	*

CONFIGURE_ARGS=	--disable-static

OPTIONS_DEFINE=	DOCS

.include <bsd.port.mk>
