From patchwork Fri Apr 24 13:23:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Horman X-Patchwork-Id: 4474 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 6A9055A35; Fri, 24 Apr 2015 15:23:31 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 7552D5A13 for ; Fri, 24 Apr 2015 15:23:30 +0200 (CEST) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YldZf-0007Ta-EM; Fri, 24 Apr 2015 09:23:29 -0400 From: Neil Horman To: dev@dpdk.org Date: Fri, 24 Apr 2015 09:23:09 -0400 Message-Id: <1429881789-16060-1-git-send-email-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.1.0 X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH] docs: convert from using inkscape to ImageMagick tools X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Requiring inkscape to convert svg files to png/pdf files, while functional is difficult for ephemeral build environments (i.e. build systems in which a new build root is setup for each build), as inkscape and its dependencies typically totals over 128Mb of code. Instead, lets use ImageMagick tools. It gives you the same output in a much more compact tool suite (512k). Signed-off-by: Neil Horman --- mk/rte.sdkdoc.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk index 9952f25..b03bca5 100644 --- a/mk/rte.sdkdoc.mk +++ b/mk/rte.sdkdoc.mk @@ -47,7 +47,7 @@ endif ifeq '$V' '0' RTE_SPHINX_VERBOSE := -q RTE_PDFLATEX_VERBOSE := --interaction=batchmode -RTE_INKSCAPE_VERBOSE := >/dev/null 2>&1 +RTE_CONVERT_VERBOSE := >/dev/null 2>&1 endif RTE_PDF_DPI ?= 300 @@ -116,4 +116,5 @@ guides-%: $(foreach guide, $(RTE_GUIDES), $(foreach img, $(wildcard $(guide)img/*.svg), \ $(eval guides-pdf-$(notdir $(guide:/=)): $(img:svg=pdf)))) %.pdf: %.svg - $(Q)inkscape -d $(RTE_PDF_DPI) -D -f $< -A $@ $(RTE_INKSCAPE_VERBOSE) + $(Q)convert -units PixelsPerInch $< -density 300 $@ $(RTE_CONVERT_VERBOSE) +# $(Q)inkscape -d $(RTE_PDF_DPI) -D -f $< -A $@ $(RTE_INKSCAPE_VERBOSE)