PORTNAME=	taglib
DISTVERSION=	2.2
CATEGORIES=	audio
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ \
		https://taglib.org/releases/

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	Library for manipulating ID3 tags and Ogg comments
WWW=		https://taglib.org/

LICENSE=		LGPL21 MPL11
LICENSE_COMB=		dual
LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING.LGPL
LICENSE_FILE_MPL11=	${WRKSRC}/COPYING.MPL

BUILD_DEPENDS=	utf8cpp>0:devel/utf8cpp
TEST_DEPENDS=	cppunit-config:devel/cppunit

USES=		cmake:testing compiler:c++17-lang cpe
USE_LDCONFIG=	yes

CMAKE_ON=	VISIBILITY_HIDDEN
CMAKE_OFF=	BUILD_TESTING

CMAKE_TESTING_TARGET=	check

PLIST_SUB=	SHLIB_VERSION=${DISTVERSION}.0

OPTIONS_DEFINE=	STATIC
OPTIONS_SUB=	yes

STATIC_CMAKE_BOOL_OFF=	BUILD_SHARED_LIBS

.include <bsd.port.mk>
