From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TNh1J-00051B-9r for ptxdist@pengutronix.de; Mon, 15 Oct 2012 11:31:34 +0200 From: Alexander Dahl Date: Mon, 15 Oct 2012 11:30:30 +0200 Message-Id: <1350293430-20935-3-git-send-email-post@lespocky.de> In-Reply-To: <1350293430-20935-1-git-send-email-post@lespocky.de> References: <1350293430-20935-1-git-send-email-post@lespocky.de> Subject: [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Alexander Dahl --- rules/gnuplot.in | 49 ++++++++++++++++++++++++++++--------------------- rules/gnuplot.make | 21 ++------------------- 2 files changed, 30 insertions(+), 40 deletions(-) diff --git a/rules/gnuplot.in b/rules/gnuplot.in index f25f2c1..c5bd109 100644 --- a/rules/gnuplot.in +++ b/rules/gnuplot.in @@ -6,8 +6,11 @@ menuconfig GNUPLOT select GCCLIBS_CXX select GCCLIBS_GCC_S select ZLIB - select LIBPNG if GNUPLOT_PNG select XORG_LIB_XT if GNUPLOT_X + select LIBGD if GNUPLOT_GD + select LIBGD_PNG if GNUPLOT_GD_PNG + select LIBGD_JPEG if GNUPLOT_GD_JPEG + select LIBGD_FREETYPE if GNUPLOT_GD_TTF help A command-line driven interactive plotting program for making 2D and 3D graphs from data and functions. @@ -49,30 +52,34 @@ config GNUPLOT_X help Enable the graphical X11 user interface of GNUplot -config GNUPLOT_PLOT +menuconfig GNUPLOT_GD bool - prompt "use Unix plot library" - depends on BROKEN + prompt "GD support " help - If you link this program with the Unix plot library - (rather outdated) it will be able to generate Unix - plot output. + Use the GD library. GD is an open source code library for the + dynamic creation of images. You get support for png and jpeg if + you select this. Note: setting options in the submenu leads to + compiling libgd with the very features. -config GNUPLOT_PNG - bool - prompt "PNG support" - help - Include support for PNG (Portable Network Graphics) - graphics format +if GNUPLOT_GD + config GNUPLOT_GD_PNG + bool + prompt "PNG support" + help + Add dependency to compile libgd with PNG support. -config GNUPLOT_GD - bool - prompt "GD support" - depends on BROKEN - help - Use the GD library. - GD is an open source code library for the dynamic - creation of images. + config GNUPLOT_GD_JPEG + bool + prompt "JPEG support" + help + Add dependency to compile libgd with PNG support. + + config GNUPLOT_GD_TTF + bool + prompt "TTF support" + help + Add dependency to compile libgd with TTF support. +endif config GNUPLOT_PDF bool diff --git a/rules/gnuplot.make b/rules/gnuplot.make index 2159933..699c35a 100644 --- a/rules/gnuplot.make +++ b/rules/gnuplot.make @@ -31,29 +31,14 @@ GNUPLOT_DIR := $(BUILDDIR)/$(GNUPLOT) GNUPLOT_PATH := PATH=$(CROSS_PATH) GNUPLOT_ENV := $(CROSS_ENV) - -# -# autoconf -# -# 4.2.4: --disable-datastrings is broken -# --disable-binary-data-file is broken -# -GNUPLOT_AUTOCONF = \ +GNUPLOT_CONF_TOOL := autoconf +GNUPLOT_CONF_OPT = \ $(CROSS_AUTOCONF_USR) \ --disable-history-file \ --disable-x11-mbfonts \ - --enable-binary-data-file \ - --disable-with-image \ - --disable-binary-x11-polygon \ --disable-thin-splines \ - --enable-datastrings \ - --disable-histograms \ --disable-objects \ - --disable-stringvariables \ --disable-macros \ - --disable-iris \ - --disable-mgr \ - --disable-rgip \ --disable-h3d-quadtree \ --disable-h3d-gridbox \ --disable-wxwidgets \ @@ -71,8 +56,6 @@ GNUPLOT_AUTOCONF = \ --without-lua \ --$(call ptx/endis, PTXCONF_GNUPLOT_X)-mouse \ --$(call ptx/wwo, PTXCONF_GNUPLOT_X)-x \ - --$(call ptx/wwo, PTXCONF_GNUPLOT_PLOT)-plot \ - --$(call ptx/wwo, PTXCONF_GNUPLOT_PNG)-png \ --$(call ptx/wwo, PTXCONF_GNUPLOT_GD)-gd \ --$(call ptx/wwo, PTXCONF_GNUPLOT_PDF)-pdf -- 1.7.2.5 -- ptxdist mailing list ptxdist@pengutronix.de