git: 25f01fda1f1f - main - multimedia/libwebm: New port: WebM video format

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 20 Feb 2024 01:59:31 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=25f01fda1f1f449751b10ed99495f5e5bf184fe0

commit 25f01fda1f1f449751b10ed99495f5e5bf184fe0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-20 01:58:48 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-20 01:59:29 +0000

    multimedia/libwebm: New port: WebM video format
---
 multimedia/Makefile          |  1 +
 multimedia/libwebm/Makefile  | 24 ++++++++++++++++++++++++
 multimedia/libwebm/distinfo  |  5 +++++
 multimedia/libwebm/pkg-descr |  9 +++++++++
 multimedia/libwebm/pkg-plist | 18 ++++++++++++++++++
 5 files changed, 57 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index f0141502a0b4..b18dd1effb3f 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -200,6 +200,7 @@
     SUBDIR += libvdpau-va-gl
     SUBDIR += libvlcpp
     SUBDIR += libvpx
+    SUBDIR += libwebm
     SUBDIR += libx264
     SUBDIR += libxine
     SUBDIR += libxspf
diff --git a/multimedia/libwebm/Makefile b/multimedia/libwebm/Makefile
new file mode 100644
index 000000000000..8e3f769a3eaf
--- /dev/null
+++ b/multimedia/libwebm/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	libwebm
+DISTVERSIONPREFIX=	libwebm-
+DISTVERSION=	1.0.0.31
+CATEGORIES=	multimedia
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	WebM video format
+WWW=		https://www.webmproject.org/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.TXT
+
+USES=		cmake:testing compiler:c++11-lang
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	webmproject
+GH_TUPLE=	google:googletest:release-1.11.0:gtest/../googletest
+
+CMAKE_ON=	ENABLE_IWYU \
+		ENABLE_WEBM_PARSER \
+		BUILD_SHARED_LIBS
+CMAKE_TESTING_ON=	ENABLE_TESTS # it's not clear how to run tests, some test executables show failures when run
+
+.include <bsd.port.mk>
diff --git a/multimedia/libwebm/distinfo b/multimedia/libwebm/distinfo
new file mode 100644
index 000000000000..9d15f6e8a634
--- /dev/null
+++ b/multimedia/libwebm/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1708391912
+SHA256 (webmproject-libwebm-libwebm-1.0.0.31_GH0.tar.gz) = 616cfdca1c869222dc60d5a49d112c1464040390e3876afca4d385347c6ce55e
+SIZE (webmproject-libwebm-libwebm-1.0.0.31_GH0.tar.gz) = 501573
+SHA256 (google-googletest-release-1.11.0_GH0.tar.gz) = b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5
+SIZE (google-googletest-release-1.11.0_GH0.tar.gz) = 886330
diff --git a/multimedia/libwebm/pkg-descr b/multimedia/libwebm/pkg-descr
new file mode 100644
index 000000000000..7f36f75fad00
--- /dev/null
+++ b/multimedia/libwebm/pkg-descr
@@ -0,0 +1,9 @@
+WebM is an open, royalty-free, media file format designed for
+the web.
+
+WebM defines the file container structure, video and audio formats.
+WebM files consist of video streams compressed with the VP8 or VP9
+video codecs and audio streams compressed with the Vorbis or Opus
+audio codecs.
+
+The WebM file structure is based on the Matroska container.
diff --git a/multimedia/libwebm/pkg-plist b/multimedia/libwebm/pkg-plist
new file mode 100644
index 000000000000..873ddd836c4b
--- /dev/null
+++ b/multimedia/libwebm/pkg-plist
@@ -0,0 +1,18 @@
+include/webm/buffer_reader.h
+include/webm/callback.h
+include/webm/common/webmids.h
+include/webm/dom_types.h
+include/webm/element.h
+include/webm/file_reader.h
+include/webm/id.h
+include/webm/istream_reader.h
+include/webm/mkvmuxer/mkvmuxer.h
+include/webm/mkvmuxer/mkvmuxertypes.h
+include/webm/mkvmuxer/mkvmuxerutil.h
+include/webm/mkvmuxer/mkvwriter.h
+include/webm/mkvparser/mkvparser.h
+include/webm/mkvparser/mkvreader.h
+include/webm/reader.h
+include/webm/status.h
+include/webm/webm_parser.h
+lib/libwebm.so