1PORTNAME=	libmysofa
2DISTVERSION=	1.3.3
3DISTVERSIONPREFIX=	v
4CATEGORIES=	audio
5
6MAINTAINER=	ports@MidnightBSD.org
7COMMENT=	SOFA (Spatially Oriented Format for Acoustics) file reader
8WWW=		https://github.com/hoene/libmysofa
9
10LICENSE=	bsd3
11LICENSE_FILE=	${WRKSRC}/LICENSE
12
13BUILD_DEPENDS=	cunit>0:devel/cunit
14
15NO_TEST=	yes
16
17USES=		cmake cpe
18USE_LDCONFIG=	yes
19
20USE_GITHUB=	yes
21GH_ACCOUNT=	hoene
22
23CPE_VENDOR=	symonics
24
25OPTIONS_DEFINE=		STATIC
26OPTIONS_DEFAULT=	STATIC
27OPTIONS_SUB=		yes
28
29STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS
30
31# The tests are expected to be in ../tests relative to the build
32# directory and the build results are expected to be in build/ relative
33# to ${WRKSRC}.  USES=cmake does not allow overwriting ${WRKDIR}/.build
34# as the build directory.
35post-patch:
36	@${RLN} ${WRKSRC}/build ${CONFIGURE_WRKSRC}
37
38.include <bsd.port.mk>
39