PORTNAME=	avro
PORTVERSION=	1.12.1
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	APACHE/avro/avro-${PORTVERSION}/cpp
PKGNAMESUFFIX=	-cpp
DISTNAME=	avro-cpp-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	C++ library for Apache Avro
WWW=		https://avro.apache.org/ \
		https://github.com/apache/avro

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libboost_regex.so:devel/boost-libs \
		libfmt.so:devel/libfmt \
		libsnappy.so:archivers/snappy \
		libzstd.so:archivers/zstd

USES=		cmake compiler:c++17-lang cpe

USE_CXXSTD=	c++17
USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}

CPE_VENDOR=	apache

post-install:
	${LN} -s libavrocpp.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libavrocpp.so.1

.include <bsd.port.mk>
