From patchwork Wed Nov 20 17:39:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Preston X-Patchwork-Id: 1198357 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J9296lpqz9sPn for ; Thu, 21 Nov 2019 04:40:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4F2BF886D0; Wed, 20 Nov 2019 17:40:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h7iKGx09PB1e; Wed, 20 Nov 2019 17:40:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 52709886C2; Wed, 20 Nov 2019 17:40:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id ED3591BF989 for ; Wed, 20 Nov 2019 17:39:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DFBD286DD3 for ; Wed, 20 Nov 2019 17:39:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r0YkXmpATe47 for ; Wed, 20 Nov 2019 17:39:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from imap1.codethink.co.uk (imap1.codethink.co.uk [176.9.8.82]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8170086DA9 for ; Wed, 20 Nov 2019 17:39:55 +0000 (UTC) Received: from [167.98.27.226] (helo=ts007-build.ts007.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iXTxJ-0008QV-HR; Wed, 20 Nov 2019 17:39:53 +0000 From: Thomas Preston To: buildroot@buildroot.org Date: Wed, 20 Nov 2019 17:39:29 +0000 Message-Id: <20191120173944.130142-16-thomas.preston@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120173944.130142-1-thomas.preston@codethink.co.uk> References: <20191120173944.130142-1-thomas.preston@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [RFC PATCH v3 15/30] package/widevine: Add package for the widevine CDM library. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jon duSaint , Michael Drake , Patrick Glaser , Thomas Preston , Enis Lavery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Michael Drake Cc: Patrick Glaser Cc: Jon duSaint Cc: Enis Lavery Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- package/Config.in | 1 + package/widevine/Config.in | 6 ++++++ package/widevine/widevine.mk | 38 ++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 package/widevine/Config.in create mode 100644 package/widevine/widevine.mk diff --git a/package/Config.in b/package/Config.in index 9cbb454a50..a27b9ad778 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1684,6 +1684,7 @@ menu "Networking" source "package/usbredir/Config.in" source "package/wampcc/Config.in" source "package/websocketpp/Config.in" + source "package/widevine/Config.in" source "package/zeromq/Config.in" source "package/zmqpp/Config.in" source "package/zyre/Config.in" diff --git a/package/widevine/Config.in b/package/widevine/Config.in new file mode 100644 index 0000000000..d730e6f9bd --- /dev/null +++ b/package/widevine/Config.in @@ -0,0 +1,6 @@ +menuconfig BR2_PACKAGE_WIDEVINE + bool "widevine" + depends on BR2_i386 || BR2_x86_64 + help + Proprietary content decryption module (CDM) for the digital + rights management (DRM) of internet content. diff --git a/package/widevine/widevine.mk b/package/widevine/widevine.mk new file mode 100644 index 0000000000..a6e96ae99b --- /dev/null +++ b/package/widevine/widevine.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# Widevine +# +################################################################################ + +# Get latest version number from: https://dl.google.com/widevine-cdm/versions.txt +WIDEVINE_VERSION = 4.10.1440.19 + +ifeq ($(BR2_i386),y) +WIDEVINE_ARCH = ia32 +else ifeq ($(BR2_x86_64),y) +WIDEVINE_ARCH = x64 +endif + +WIDEVINE_SOURCE = $(WIDEVINE_VERSION)-linux-$(WIDEVINE_ARCH).zip +WIDEVINE_SITE = https://dl.google.com/widevine-cdm +WIDEVINE_LICENSE = Proprietary +WIDEVINE_LICENSE_FILES = LICENSE.txt +WIDEVINE_INSTALL_STAGING = YES + +define WIDEVINE_EXTRACT_CMDS + $(UNZIP) $(WIDEVINE_DL_DIR)/$(WIDEVINE_SOURCE) -d $(@D) +endef + +define WIDEVINE_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0755 -t $(STAGING_DIR)/usr/lib \ + $(@D)/libwidevinecdm.so \ + $(@D)/manifest.json +endef + +define WIDEVINE_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 -t $(TARGET_DIR)/usr/lib \ + $(@D)/libwidevinecdm.so \ + $(@D)/manifest.json +endef + +$(eval $(generic-package))