pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/openwv: import openwv-1.1.3



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Wed Jan 21 02:37:16 2026 +0900
Changeset:	2667ba250cc40a68cc287ba4e710431b067b2e0a

Added Files:
	openwv/DESCR
	openwv/MESSAGE
	openwv/Makefile
	openwv/PLIST
	openwv/distinfo
	openwv/patches/patch-Cargo.toml

Log Message:
wip/openwv: import openwv-1.1.3

OpenWV is a free and open-source reimplementation of Google's Widevine Content
Decryption Module (CDM), the portion of the Widevine DRM system that runs in
your browser, obtains content keys for protected media, and decrypts the media
using those keys. OpenWV is a drop-in replacement for Google's official,
proprietary CDM and implements the same shared library API.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2667ba250cc40a68cc287ba4e710431b067b2e0a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openwv/DESCR                    |  5 +++++
 openwv/MESSAGE                  | 19 +++++++++++++++++++
 openwv/Makefile                 | 35 +++++++++++++++++++++++++++++++++++
 openwv/PLIST                    |  4 ++++
 openwv/distinfo                 |  6 ++++++
 openwv/patches/patch-Cargo.toml | 24 ++++++++++++++++++++++++
 6 files changed, 93 insertions(+)

diffs:
diff --git a/openwv/DESCR b/openwv/DESCR
new file mode 100644
index 0000000000..bd4140e7d1
--- /dev/null
+++ b/openwv/DESCR
@@ -0,0 +1,5 @@
+OpenWV is a free and open-source reimplementation of Google's Widevine Content
+Decryption Module (CDM), the portion of the Widevine DRM system that runs in
+your browser, obtains content keys for protected media, and decrypts the media
+using those keys. OpenWV is a drop-in replacement for Google's official,
+proprietary CDM and implements the same shared library API.
diff --git a/openwv/MESSAGE b/openwv/MESSAGE
new file mode 100644
index 0000000000..416917ed51
--- /dev/null
+++ b/openwv/MESSAGE
@@ -0,0 +1,19 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2011/03/03 10:51:59 ryoon Exp $
+
+(1) Open about:support in www/firefox and get profile name.
+(2) Create gmp-widevinecdm/openwv directory under profile directory.
+$ mkdir -p ~/.mozilla/<profile>/gmp-widevinecdm/openwv
+(3) Copy ${PREFIX}/share/openwv/libwidevinecdm.so
+    to ~/.mozilla/<profile>/gmp-widevinecdm/openwv
+(4) Copy ${PREFIX}/share/openwv/manifest-firefox.json
+    as ~/.mozilla/<profile>/gmp-widevinecdm/openwv/manifest.json
+(5) Create some keys in about:config.
+    key					| type		| value
+    -------------------------------------------------------------
+    media.gmp-widevinecdm.enabled	| boolean	| true
+    media.gmp-widevinecdm.visible	| boolean	| true
+    media.gmp-widevinecdm.autoupdate	| boolean	| false
+    media.gmp-widevinecdm.version	| string	| openwv
+
+===========================================================================
diff --git a/openwv/Makefile b/openwv/Makefile
new file mode 100644
index 0000000000..c3672f14e3
--- /dev/null
+++ b/openwv/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+DISTNAME=	openwv-1.1.3
+CATEGORIES=	multimedia
+# Tarball contains Git submodule and result of `cargo vendor`.
+MASTER_SITES=	https://www.ryoon.net/~ryoon/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	ryoon%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/tchebb/openwv/
+COMMENT=	Open reimplementation of Google's Widevine
+LICENSE=	gnu-lgpl-v3
+
+USE_LANGUAGES=	c c++
+
+INSTALLATION_DIRS+=	share/openwv
+
+post-extract:
+	# Adjust for vendor handling of cargo.mk
+	cd ${WRKSRC} && \
+		${MV} vendor ..
+	# Copy embedded.wvd file ${WRKSRC} manually.
+	#cd ${WRKSRC} && \
+	#	${CP} ${SOMEWHERE}/keydive.wvd ${WRKSRC}/embedded.wvd
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/target/release/libwidevinecdm.so \
+		${DESTDIR}${PREFIX}/share/openwv
+	${INSTALL_DATA} ${WRKSRC}/manifest-firefox.json \
+		${DESTDIR}${PREFIX}/share/openwv
+	${INSTALL_DATA} ${WRKSRC}/manifest-chromium.json \
+		${DESTDIR}${PREFIX}/share/openwv
+
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/openwv/PLIST b/openwv/PLIST
new file mode 100644
index 0000000000..72c3c5fb45
--- /dev/null
+++ b/openwv/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+share/openwv/libwidevinecdm.so
+share/openwv/manifest-chromium.json
+share/openwv/manifest-firefox.json
diff --git a/openwv/distinfo b/openwv/distinfo
new file mode 100644
index 0000000000..c7f309e804
--- /dev/null
+++ b/openwv/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (openwv-1.1.3.tar.bz2) = 2457e67c8cfcc33b7cc4161ad59fdb96176fe5f37805141f57300c8f9e9ec3cf
+SHA512 (openwv-1.1.3.tar.bz2) = 1168029017b0ccc92c119e860a37e565940d54f9f4b2759e26da9ae615c1940f83483cffea642c2e36e958d77f99c6bc58df9c747d08b3d229bc839093f4766f
+Size (openwv-1.1.3.tar.bz2) = 23790667 bytes
+SHA1 (patch-Cargo.toml) = bdda1d5ee91423d173e659bd4c305d4362a6f0c8
diff --git a/openwv/patches/patch-Cargo.toml b/openwv/patches/patch-Cargo.toml
new file mode 100644
index 0000000000..623ce6e1d9
--- /dev/null
+++ b/openwv/patches/patch-Cargo.toml
@@ -0,0 +1,24 @@
+$NetBSD$
+
+* Use vendored autocxx for offline build.
+
+--- Cargo.toml.orig	2026-01-20 13:47:09.346022322 +0000
++++ Cargo.toml
+@@ -10,7 +10,7 @@ edition = "2024"
+ edition = "2024"
+ 
+ [dependencies]
+-autocxx = { git = "https://github.com/tchebb/autocxx.git";, branch = "openwv-fixes" }
++autocxx = "0.30.0"
+ cxx = "1"
+ prost = "0.14.1"
+ thiserror = "2"
+@@ -31,7 +31,7 @@ ctr = "0.10.0-rc"
+ ctr = "0.10.0-rc"
+ 
+ [build-dependencies]
+-autocxx-build = { git = "https://github.com/tchebb/autocxx.git";, branch = "openwv-fixes" }
++autocxx-build = "0.30.0"
+ prost-build = "0.14.1"
+ thiserror = "2"
+ 


Home | Main Index | Thread Index | Old Index