summaryrefslogtreecommitdiff
path: root/multimedia/svt-av1-hdr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/svt-av1-hdr/Makefile')
-rw-r--r--multimedia/svt-av1-hdr/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/multimedia/svt-av1-hdr/Makefile b/multimedia/svt-av1-hdr/Makefile
new file mode 100644
index 000000000000..c08813a0a410
--- /dev/null
+++ b/multimedia/svt-av1-hdr/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= svt-av1-hdr
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.1.0
+CATEGORIES= multimedia
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Scalable AV1 encoder focused on perceptual quality
+WWW= https://github.com/juliobbv-p/svt-av1-hdr
+
+LICENSE= BSD2CLAUSE BSD3CLAUSE MIT
+LICENSE_COMB= multi
+LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE-BSD2.md
+LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.md
+LICENSE_FILE_MIT= ${WRKSRC}/third_party/safestringlib/LICENSE
+
+BUILD_DEPENDS= ${BUILD_DEPENDS_${ARCH}}
+BUILD_DEPENDS_amd64= nasm:devel/nasm
+
+USES= cmake compiler:c11
+USE_GITHUB= yes
+USE_LDCONFIG= yes
+GH_ACCOUNT= juliobbv-p
+CMAKE_OFF= NATIVE
+PLIST_SUB= VERSION=${DISTVERSION:C/-.*//}
+
+CONFLICTS_INSTALL= svt-av1 # bin/SvtAv1EncApp
+
+OPTIONS_DEFINE= LTO
+OPTIONS_DEFAULT=LTO
+OPTIONS_EXCLUDE_riscv64= LTO # bug 262871
+
+LTO_CMAKE_BOOL= CMAKE_INTERPROCEDURAL_OPTIMIZATION
+LTO_CMAKE_ON= -DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW
+
+.include <bsd.port.mk>