From patchwork Thu Oct 17 15:29:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Drake X-Patchwork-Id: 1178748 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.136; helo=silver.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 silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vCn61hgsz9sRH for ; Fri, 18 Oct 2019 02:30:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 92D8524B6B; Thu, 17 Oct 2019 15:30:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bz2N+UUAczJ6; Thu, 17 Oct 2019 15:30:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6610724BB3; Thu, 17 Oct 2019 15:30:20 +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 6C6B81BF568 for ; Thu, 17 Oct 2019 15:29:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6A19D8699B for ; Thu, 17 Oct 2019 15:29:44 +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 qZSw7WNuKfcp for ; Thu, 17 Oct 2019 15:29:44 +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 C907286955 for ; Thu, 17 Oct 2019 15:29:43 +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 1iL7if-0002Zy-V2; Thu, 17 Oct 2019 16:29:42 +0100 From: Michael Drake To: buildroot@buildroot.org Date: Thu, 17 Oct 2019 16:29:17 +0100 Message-Id: <20191017152929.49153-19-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017152929.49153-1-michael.drake@codethink.co.uk> References: <20191017152929.49153-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [RFC PATCH v2 18/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: Michael Drake , Patrick Glaser , Thomas Preston , Enis Lavery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Cc: Patrick Glaser 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 | 28 ++++++++++++++++++++++++++++ 3 files changed, 35 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 5fc2b8a635..d290f88067 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1650,6 +1650,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..7a7546c5a0 --- /dev/null +++ b/package/widevine/widevine.mk @@ -0,0 +1,28 @@ +# Get latest version number from: https://dl.google.com/widevine-cdm/current.txt +WIDEVINE_VERSION = 1.4.9.1088 + +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 $(@D)/libwidevinecdm.so $(STAGING_DIR)/usr/lib +endef + +define WIDEVINE_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/libwidevinecdm.so $(TARGET_DIR)/usr/lib +endef + +$(eval $(generic-package))