summaryrefslogtreecommitdiff
path: root/multimedia/svt-av1-hdr
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/svt-av1-hdr')
-rw-r--r--multimedia/svt-av1-hdr/Makefile35
-rw-r--r--multimedia/svt-av1-hdr/distinfo3
-rw-r--r--multimedia/svt-av1-hdr/pkg-descr4
-rw-r--r--multimedia/svt-av1-hdr/pkg-message13
-rw-r--r--multimedia/svt-av1-hdr/pkg-plist12
5 files changed, 67 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>
diff --git a/multimedia/svt-av1-hdr/distinfo b/multimedia/svt-av1-hdr/distinfo
new file mode 100644
index 000000000000..62fc82333338
--- /dev/null
+++ b/multimedia/svt-av1-hdr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1753733623
+SHA256 (juliobbv-p-svt-av1-hdr-v3.1.0_GH0.tar.gz) = 6d424a6ee008703e0e1a6a2722ac234d2594e968841cb7b38cca1f495de88e55
+SIZE (juliobbv-p-svt-av1-hdr-v3.1.0_GH0.tar.gz) = 7286884
diff --git a/multimedia/svt-av1-hdr/pkg-descr b/multimedia/svt-av1-hdr/pkg-descr
new file mode 100644
index 000000000000..cad027fb31fb
--- /dev/null
+++ b/multimedia/svt-av1-hdr/pkg-descr
@@ -0,0 +1,4 @@
+SVT-AV1-PSY is the Scalable Video Technology for AV1 (SVT-AV1 Encoder
+and Decoder) with perceptual enhancements for psychovisually optimal
+AV1 encoding. The goal is to create the best encoding implementation
+for perceptual quality with AV1.
diff --git a/multimedia/svt-av1-hdr/pkg-message b/multimedia/svt-av1-hdr/pkg-message
new file mode 100644
index 000000000000..65733cbf49b4
--- /dev/null
+++ b/multimedia/svt-av1-hdr/pkg-message
@@ -0,0 +1,13 @@
+[
+{ type: install
+ message: <<EOM
+SVT-AV1-HDR is ABI compatible with SVT-AV1, so if the versions match
+it's possible to switch without rebuilding consumers like FFmpeg:
+
+ $ pkg set -n svt-av1:svt-av1-hdr
+ $ pkg set -o multimedia/svt-av1:multimedia/svt-av1-hdr
+ $ pkg upgrade -f svt-av1-hdr
+ $ pkg lock svt-av1-hdr
+EOM
+}
+]
diff --git a/multimedia/svt-av1-hdr/pkg-plist b/multimedia/svt-av1-hdr/pkg-plist
new file mode 100644
index 000000000000..40784db4e457
--- /dev/null
+++ b/multimedia/svt-av1-hdr/pkg-plist
@@ -0,0 +1,12 @@
+bin/SvtAv1EncApp
+include/svt-av1/EbConfigMacros.h
+include/svt-av1/EbDebugMacros.h
+include/svt-av1/EbSvtAv1.h
+include/svt-av1/EbSvtAv1Enc.h
+include/svt-av1/EbSvtAv1ErrorCodes.h
+include/svt-av1/EbSvtAv1Formats.h
+include/svt-av1/EbSvtAv1Metadata.h
+lib/libSvtAv1Enc.so
+lib/libSvtAv1Enc.so.3
+lib/libSvtAv1Enc.so.%%VERSION%%
+libdata/pkgconfig/SvtAv1Enc.pc