summaryrefslogtreecommitdiff
path: root/audio/ebur128/Makefile
blob: b87e81d7cd8a1df1a8dde71eb7edceb9768255aa (plain)
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
PORTNAME=	ebur128
DISTVERSION=	0.1.8
PORTREVISION=	1
CATEGORIES=	audio

MAINTAINER=	diizzy@FreeBSD.org
COMMENT=	Library implementing the EBU R128 loudness standard
WWW=		https://github.com/sdroege/ebur128

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	cargo-cbuild:devel/cargo-c

USES=		cargo
USE_GITHUB=	yes
USE_LDCONFIG=	yes
GH_ACCOUNT=	sdroege

CONFLICTS_INSTALL=	libebur128

do-build:
	@${CARGO_CARGO_RUN} cbuild --verbose --verbose ${CARGO_BUILD_ARGS}

do-install:
	@${CARGO_CARGO_RUN} cinstall --verbose --verbose \
		--destdir "${STAGEDIR}" \
		--prefix "${PREFIX}" \
		${CARGO_INSTALL_ARGS}
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>