mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version
Date: Mon, 15 Oct 2012 11:30:30 +0200	[thread overview]
Message-ID: <1350293430-20935-3-git-send-email-post@lespocky.de> (raw)
In-Reply-To: <1350293430-20935-1-git-send-email-post@lespocky.de>


Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 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

  parent reply	other threads:[~2012-10-15  9:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15  9:30 [ptxdist] (no subject) Alexander Dahl
2012-10-15  9:30 ` [ptxdist] [PATCH 1/2] gnuplot: upgrade to v4.6.1 Alexander Dahl
2012-10-15 11:04   ` Michael Olbrich
2012-10-15  9:30 ` Alexander Dahl [this message]
2012-10-15 11:07   ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Michael Olbrich
2012-10-15 12:35     ` Michael Olbrich
2012-10-15 10:15 ` [ptxdist] (no subject) Alexander Dahl
  -- strict thread matches above, loose matches on Subject: below --
2012-10-12 15:09 [ptxdist] gnuplot: update and fix broken stuff Alexander Dahl
2012-10-12 15:09 ` [ptxdist] [PATCH 2/2] gnuplot: fix broken build options for new gnuplot version Alexander Dahl
2012-10-14 10:46   ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350293430-20935-3-git-send-email-post@lespocky.de \
    --to=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox