From patchwork Sat Feb 15 18:32:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 20256 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EDCED27BBE4; Sat, 15 Feb 2020 18:34:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 05C0E27BBEE for ; Sat, 15 Feb 2020 18:34:09 +0000 (GMT) Received: from localhost ([::1]:53524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j32GW-0004XA-Jc for patchwork@mira.cbaines.net; Sat, 15 Feb 2020 13:34:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60116) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j32GR-0004Ws-7F for guix-patches@gnu.org; Sat, 15 Feb 2020 13:34:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j32GP-0003Hw-Ue for guix-patches@gnu.org; Sat, 15 Feb 2020 13:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j32GP-0003Hp-R2 for guix-patches@gnu.org; Sat, 15 Feb 2020 13:34:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j32GP-0001dW-PI for guix-patches@gnu.org; Sat, 15 Feb 2020 13:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39616] [PATCH 2/2] gnu: Add libavif. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Feb 2020 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39616 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 39616@debbugs.gnu.org Received: via spool by 39616-submit@debbugs.gnu.org id=B39616.15817915876220 (code B ref 39616); Sat, 15 Feb 2020 18:34:01 +0000 Received: (at 39616) by debbugs.gnu.org; 15 Feb 2020 18:33:07 +0000 Received: from localhost ([127.0.0.1]:36361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j32FP-0001bg-GJ for submit@debbugs.gnu.org; Sat, 15 Feb 2020 13:33:06 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:39791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j32FN-0001bM-9p for 39616@debbugs.gnu.org; Sat, 15 Feb 2020 13:32:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6786E571; Sat, 15 Feb 2020 13:32:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 15 Feb 2020 13:32:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=v5Z/M056HXyd/xG86Av6v+FpfKZ0y5YPZFVF21U9nG0=; b=VFm8jZUUz6yK Esjai3Xy3HKR5488YsmtDQuFcuPiW1p22AuM0tCDqq7Oe1dVRu003P+E8+KZB+dH sLeTbc5u30Y+80piaBLMxLF5EUEIkiguhg7K+9M7iw99yzQt1uSQVLG/fxX/JqSX HQUlBPhJPN1gdjIZqtXCt/nhRtEicwk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=v5Z/M056HXyd/xG86Av6v+FpfKZ0y5YPZFVF21U9n G0=; b=GlimgsFelwqLudNbs6aGF2S58YS+fCxZzfq8cp/PmZEDBN3G1E7j5wcuN DJ1JxMLwbaFJqlGgP7QBZQviWYNCqPLmF0rNv1exCL7hQ/HVsVub7jVzkCxNzDgo aYtwVDn9i9RpLcry+lUCgCcfNetrRAS6E9cZsbYo6GvArP0XeafrTyU1nb3E2wFs Fp5eHh+qhrsnnfot/t/3x/bEKUwG0C+K3FRKweverY+7t2xkzMl+iGcJYYVV9zu6 SDZecc4i5KUF2BH0t11W/jEI9HI7qNB4JZonaXcuepF4mAWGcCQFV5NkOE+/prMV DIpQyT1IORnUyTJeV1ws8qUh06BsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjedvgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhggtgfgsehtke ertdertdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeejie druddvgedrudefkedrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: from jasmine.lan (c-76-124-138-63.hsd1.pa.comcast.net [76.124.138.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 488C3328005A for <39616@debbugs.gnu.org>; Sat, 15 Feb 2020 13:32:50 -0500 (EST) From: Leo Famulari Date: Sat, 15 Feb 2020 13:32:30 -0500 Message-Id: X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/image.scm (libavif): New variable. --- gnu/packages/image.scm | 45 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index f9da1e9e89..e077b05215 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer ;;; Copyright © 2015 Amirouche Boubekki ;;; Copyright © 2014, 2017 John Darrington -;;; Copyright © 2016, 2017, 2018 Leo Famulari +;;; Copyright © 2016, 2017, 2018, 2020 Leo Famulari ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2016 Eric Bavier @@ -72,6 +72,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (gnu packages qt) + #:use-module (gnu packages video) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) @@ -1844,3 +1845,45 @@ using only text tools. SNG is implemented by a compiler/decompiler called sng that losslessly translates between SNG and PNG.") (license license:zlib))) + +(define-public libavif + (package + (name "libavif") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AOMediaCodec/libavif") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hb4izd2n3wb4vp8qhx542hdzwl74qrh0qnll6935n4f6ypq2gxq")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags '("-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON" + "-DAVIF_CODEC_RAV1E=OFF" ; not packaged yet + "-DAVIF_BUILD_TESTS=ON") + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-readme + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/libavif-" + ,version))) + (install-file "../source/README.md" doc))))) +;; The test suite runs tests for all supported codecs and fails because we don't +;; have rav1e yet. +;; (replace 'check +;; (lambda _ +;; (invoke "./aviftest" "../source/tests/data")))) + #:tests? #f)) + (inputs + `(("libaom" ,libaom) + ("dav1d" ,dav1d))) + (synopsis "Encode and decode AVIF files") + (description "Libavif is a C implementation of the AV1 Image File Format +(AVIF). It can encode and decode all AOM supported YUV formats and bit depths, +including with alpha.") + (home-page "https://github.com/AOMediaCodec/libavif") + (license license:bsd-2))) ; Audit