aboutsummaryrefslogtreecommitdiff
path: root/multimedia/svt-av1/Makefile
blob: d19e60ceef3079de628e43c1ebcbc0eaccfe113e (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
PORTNAME=	svt-av1
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.0
CATEGORIES=	multimedia

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Scalable AV1 encoder

LICENSE=	BSD2CLAUSE BSD3CLAUSE MIT
LICENSE_COMB=	multi
LICENSE_FILE_BSD2CLAUSE=	${WRKSRC}/LICENSE.md
LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/third_party/fastfeat/LICENSE
LICENSE_FILE_MIT=		${WRKSRC}/third_party/safestringlib/LICENSE

BROKEN_i386=	https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1231

BUILD_DEPENDS=	nasm:devel/nasm

USES=		cmake compiler:c11
USE_GITLAB=	yes
USE_LDCONFIG=	yes
GL_ACCOUNT=	AOMediaCodec
GL_PROJECT=	SVT-AV1
GL_COMMIT=	fdf4f36867bba068e221965d12c5975c509845da
CMAKE_ON=	NATIVE ENABLE_NASM

OPTIONS_DEFINE=	LTO
OPTIONS_DEFAULT=LTO
OPTIONS_EXCLUDE_powerpc64=	${"${/usr/bin/ld:L:tA}"==/usr/bin/ld.lld:?LTO:} # LLVM bug 47353
OPTIONS_EXCLUDE_riscv64=	LTO

LTO_CMAKE_BOOL=		CMAKE_INTERPROCEDURAL_OPTIMIZATION
LTO_CMAKE_ON=		-DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW

.include <bsd.port.mk>