From patchwork Sun Jul 21 14:11:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1134539 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OM+/aZZI"; dkim-atps=neutral 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 45s69Y3SM5z9s00 for ; Mon, 22 Jul 2019 00:11:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9C8B785194; Sun, 21 Jul 2019 14:11:24 +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 tAsV9Ui5akBW; Sun, 21 Jul 2019 14:11:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F027B851E0; Sun, 21 Jul 2019 14:11:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A3BAD1BF3B1 for ; Sun, 21 Jul 2019 14:11:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A0C6D85FED for ; Sun, 21 Jul 2019 14:11:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BlCpyv9Y8l20 for ; Sun, 21 Jul 2019 14:11:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id C4505805DB for ; Sun, 21 Jul 2019 14:11:20 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id 31so36758662wrm.1 for ; Sun, 21 Jul 2019 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PGdAsP1AZws+6+2wbSTPse0Pc7WWwL3YEF714HZJDVs=; b=OM+/aZZIDBtx6Gn7Tj82/QU1IcIKG3BTofGQJAOy6eX6LYucsvkhievrQVahRradm7 6Z7EflDVpPhQ69QyN7SEEVLCc457QD8B/V/fiPaFgjBudOtTGxGrMWAMlb7FeIOxXQo/ fXmJFIB65uAHGz8hAyQ9/nKGKAbhr7ZJOzlDnhFbJTX1pJInAdbWr4RYFtcRlEfCUHGb aArPndafT5RHLfTVkQxvKKsEB8AZ66yBeFh2uTxyw6xXPKewQ5Ottmlzip6Ma3EqKwLE evuejy4V6QCE8DyOqG75+CuloCwDXsfxytqo/LwoNRM5nkFH/WzYyg0spZe9uStRJGSw +v9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PGdAsP1AZws+6+2wbSTPse0Pc7WWwL3YEF714HZJDVs=; b=a53KC5YaslyOPIsPNEJybsaJJSRzT0lBK2+d97msQ045Y3XC2HXTWgg2a3VMHRhgCr Qr3YtSYSILfdMf50NWgCC283rw51H2vV5DKA4E5tJB79E/vGFGUdnhulGt2l/D63wFdt K/ItpfH0idAmT0AHHwC4MTDMCLMKp673KCAdoea/JKHTOeYYRh27tyYvyeubqnAzgA/n U5qzO6Dxc8PWekvmoDX40lp9jT6bmoom8oPyrlcwPo2yLGMfZ5cGinANaJJE0DNBXZY9 m2Hcwz6APfeQ22e6U55GyQIEYxcFqilEQlf9sZqA7o7fAHpuB/SuI9zK1e45YZL9PK+r Mqyg== X-Gm-Message-State: APjAAAWxGSkDnoFkLFYf4J6abAsOboh3LBRiTsMeeOAt9lPUwmS7nUDu fS5uHJ28OGkM2Tx946eoR6rg7WLQ X-Google-Smtp-Source: APXvYqxHQZKazT+CluuYv+AvONPr5m81pdQbOju8iK4KKQ10CvV/R/r0g8fbjs0Nj4YJbmw0Ktu1rQ== X-Received: by 2002:a5d:4e90:: with SMTP id e16mr14660814wru.339.1563718279107; Sun, 21 Jul 2019 07:11:19 -0700 (PDT) Received: from localhost.localdomain (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id n9sm71224739wrp.54.2019.07.21.07.11.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 21 Jul 2019 07:11:18 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sun, 21 Jul 2019 16:11:08 +0200 Message-Id: <20190721141108.13807-1-francois.perrad@gadz.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/netsurf: add optional dependency on webp 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" new feature of version 3.9 Signed-off-by: Francois Perrad --- package/netsurf/netsurf.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk index 30e8dc8b4..d21d522e7 100644 --- a/package/netsurf/netsurf.mk +++ b/package/netsurf/netsurf.mk @@ -63,11 +63,23 @@ define NETSURF_CURL_CONFIGURE_CMDS endef endif +ifeq ($(BR2_PACKAGE_WEBP),y) +NETSURF_DEPENDENCIES += webp +define NETSURF_WEBP_CONFIGURE_CMDS + echo "override NETSURF_USE_WEBP := YES" >> $(@D)/netsurf/Makefile.config +endef +else +define NETSURF_WEBP_CONFIGURE_CMDS + echo "override NETSURF_USE_WEBP := NO" >> $(@D)/netsurf/Makefile.config +endef +endif + define NETSURF_CONFIGURE_CMDS $(NETSURF_ICONV_CONFIGURE_CMDS) $(NETSURF_SVG_CONFIGURE_CMDS) $(NETSURF_FONTLIB_CONFIGURE_CMDS) $(NETSURF_CURL_CONFIGURE_CMDS) + $(NETSURF_WEBP_CONFIGURE_CMDS) endef NETSURF_MAKE_ENV = \