PORTNAME=	libcbor
PORTVERSION=	0.12.0
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	CBOR protocol implementation for C and others
WWW=		https://github.com/PJK/libcbor

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		cmake pathfix

CMAKE_OFF=	CBOR_CUSTOM_ALLOC \
		CMAKE_INTERPROCEDURAL_OPTIMIZATION \
		COVERAGE \
		HUGE_FUZZ \
		PRINT_FUZZ \
		SANE_MALLOC \
		SANITIZE \
		WITH_EXAMPLES \
		WITH_TESTS
CMAKE_ON=	BUILD_SHARED_LIBS \
		CBOR_PRETTY_PRINTER \
		CMAKE_SKIP_INSTALL_ALL_DEPENDENCY

PLIST_SUB=	PORTVERSION=${PORTVERSION}

GH_ACCOUNT=	PJK
USE_GITHUB=	yes

.include <bsd.port.mk>
