aboutsummaryrefslogtreecommitdiff
path: root/audio/libmysofa/Makefile
blob: 0ca80667c2661795321c2afe3f3fef91cc7420de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PORTNAME=	libmysofa
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.2
CATEGORIES=	audio

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	SOFA (Spatially Oriented Format for Acoustics) file reader
WWW=		https://github.com/hoene/libmysofa

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	node:www/node

USES=		cmake cpe pathfix
USE_LDCONFIG=	yes

CPE_VENDOR=	symonics

USE_GITHUB=	yes
GH_ACCOUNT=	hoene

OPTIONS_DEFINE=		STATIC TEST
OPTIONS_DEFAULT=	STATIC
OPTIONS_SUB=		yes

STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS

TEST_BUILD_DEPENDS=	cunit>0:devel/cunit
TEST_CMAKE_BOOL=	BUILD_TESTS
TEST_TEST_TARGET=	test

# The tests are expected to be in ../tests relative to the build
# directory and the build results are expected to be in build/ relative
# to ${WRKSRC}.  USES=cmake does not allow overwriting ${WRKDIR}/.build
# as the build directory.
post-patch:
	@${RLN} ${WRKSRC}/build ${CONFIGURE_WRKSRC}

.include <bsd.port.mk>