git: 72934a54f827 - main - multimedia/uvg266: add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 04 Jan 2023 17:13:37 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72934a54f82721d5919a4629e77236e4db5c94dc

commit 72934a54f82721d5919a4629e77236e4db5c94dc
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-07-08 12:26:13 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-01-04 17:12:14 +0000

    multimedia/uvg266: add new port
    
    An open-source VVC encoder licensed under 3-clause BSD license.
    
    uvg266 is still under development. Speed and RD-quality will continue
    to improve.
    
    https://github.com/ultravideo/uvg266
---
 multimedia/Makefile         |  1 +
 multimedia/uvg266/Makefile  | 31 +++++++++++++++++++++++++++++++
 multimedia/uvg266/distinfo  |  5 +++++
 multimedia/uvg266/pkg-descr |  4 ++++
 multimedia/uvg266/pkg-plist |  5 +++++
 5 files changed, 46 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index 60ecd841e99e..2a4827dac75d 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -380,6 +380,7 @@
     SUBDIR += transcode
     SUBDIR += tvheadend
     SUBDIR += ustreamer
+    SUBDIR += uvg266
     SUBDIR += uxplay
     SUBDIR += v4l-utils
     SUBDIR += v4l_compat
diff --git a/multimedia/uvg266/Makefile b/multimedia/uvg266/Makefile
new file mode 100644
index 000000000000..d4f7e8b60dc5
--- /dev/null
+++ b/multimedia/uvg266/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	uvg266
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.4.1
+CATEGORIES=	multimedia
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	VVC encoder based on Kvazaar
+WWW=		https://ultravideo.fi/#encoder_x
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+TEST_DEPENDS=	ffmpeg:multimedia/ffmpeg \
+		vvdecapp:multimedia/vvdec
+
+USES=		cmake:testing compiler:c11 python:test
+USE_GITHUB=	yes
+GH_ACCOUNT=	ultravideo
+GH_TUPLE=	silentbicycle:greatest:v1.0.0:greatest/greatest
+CMAKE_OFF+=	${CMAKE_TESTING_ON}
+CMAKE_TESTING_ON=	BUILD_TESTS
+USE_LDCONFIG=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e 's/DecoderAppStatic/vvdecapp/' \
+		-e 's,\.\./bin,${BUILD_WRKSRC},' \
+		${WRKSRC}/tests/util.sh
+	@${REINPLACE_CMD} -e 's/python3/${PYTHON_CMD:T}/' \
+		${WRKSRC}/tests/test_cabac_state.sh
+
+.include <bsd.port.mk>
diff --git a/multimedia/uvg266/distinfo b/multimedia/uvg266/distinfo
new file mode 100644
index 000000000000..f2884de24d5c
--- /dev/null
+++ b/multimedia/uvg266/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1657283173
+SHA256 (ultravideo-uvg266-v0.4.1_GH0.tar.gz) = 9d4decb1b9141ce7a439710a747db7ef0983fa647255972294879122642b8f2b
+SIZE (ultravideo-uvg266-v0.4.1_GH0.tar.gz) = 769873
+SHA256 (silentbicycle-greatest-v1.0.0_GH0.tar.gz) = 18ee57a34869c6f6ce511cd71a5cc8661801cf69d64c4c66ff76773835df659b
+SIZE (silentbicycle-greatest-v1.0.0_GH0.tar.gz) = 11959
diff --git a/multimedia/uvg266/pkg-descr b/multimedia/uvg266/pkg-descr
new file mode 100644
index 000000000000..c64f11594ef1
--- /dev/null
+++ b/multimedia/uvg266/pkg-descr
@@ -0,0 +1,4 @@
+An open-source VVC encoder licensed under 3-clause BSD license.
+
+uvg266 is still under development. Speed and RD-quality will continue
+to improve.
diff --git a/multimedia/uvg266/pkg-plist b/multimedia/uvg266/pkg-plist
new file mode 100644
index 000000000000..25d0bad424c1
--- /dev/null
+++ b/multimedia/uvg266/pkg-plist
@@ -0,0 +1,5 @@
+bin/uvg266
+include/uvg266.h
+lib/libuvg266.so
+libdata/pkgconfig/uvg266.pc
+share/man/man1/uvg266.1.gz