Date:2011-01-04 21:56:22 (13 years 2 months ago)
Author:David Kühling
Commit:fba3cca4ecb9e18b9c9e3fdf39cca16afcb38f59
Message:gnuplot-ggi: A version of gnuplot that draws to the framebuffer via libggi

Files: gnuplot-ggi/Makefile (1 diff)
gnuplot-ggi/patches/010-Makefile.in.patch (1 diff)
gnuplot-ggi/patches/020-ggi-setmode.patch (1 diff)

Change Details

gnuplot-ggi/Makefile
1#
2# Gnuplot package for OpenWrt.
3#
4# Adapted to support LibGGI video output by
5# David Kuehling <dvdkhlng TA gmx TOD de>
6#
7# License GPLv2 or later. NO WARRANTY.
8#
9
10include $(TOPDIR)/rules.mk
11
12PKG_NAME:=gnuplot-ggi
13PKG_ORIG_NAME=gnuplot
14PKG_VERSION:=4.4.0
15PKG_RELEASE:=2
16PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_ORIG_NAME)-$(PKG_VERSION)
17PKG_INSTALL=1
18
19PKG_SOURCE:=$(PKG_ORIG_NAME)-$(PKG_VERSION).tar.gz
20PKG_SOURCE_URL:=@SF/gnuplot
21PKG_MD5SUM:=e708665bd512153ad5c35252fe499059
22
23include $(INCLUDE_DIR)/package.mk
24
25TARGET_CFLAGS += \
26    -I$(STAGING_DIR)/usr/lib/libintl/include \
27    -I$(STAGING_DIR)/usr/lib/libiconv/include
28
29TARGET_LDFLAGS+= \
30    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
31    -L$(STAGING_DIR)/usr/lib/libintl/lib \
32    -L$(STAGING_DIR)/usr/lib/libiconv/lib
33
34CONFIGURE_VARS += \
35    CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
36    CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
37    LIBS="-nodefaultlibs -luClibc++ -lpthread -lgcc"
38
39define Package/gnuplot-ggi
40  SECTION:=utils
41  CATEGORY:=Utilities
42  DEPENDS:=+libncurses +uclibcxx +zlib +libpng +libfreetype +libgd +libintl +libiconv
43  TITLE:=A portable command-line driven graphing utility
44  URL:=http://sourceforge.net/projects/gnuplot/
45endef
46
47define Package/gnuplot-ggi/description
48  Gnuplot is a portable command-line driven graphing utility for linux, OS/2,
49  MS Windows, OSX, VMS, and many other platforms.
50endef
51
52CONFIGURE_ARGS += \
53    --without-x \
54    --without-tutorial \
55    --without-row-help \
56    --without-lisp-files \
57    --with-ggi
58
59# cannot disable mouse for ggi: compilation fails. (todo: fix)
60# --disable-mouse
61
62# Use via 'set terminal ggi S320x240x[C24/32]V320x240F1' (?)
63# how to set this as default?
64
65#TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib
66
67define Package/gnuplot-ggi/install
68    $(INSTALL_DIR) $(1)/usr/bin
69    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
70endef
71
72$(eval $(call BuildPackage,gnuplot-ggi))
73
74
75# The following comments configure the Emacs editor. Just ignore them.
76# Local Variables:
77# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/gnuplot-ggi/compile -j2 V=99"
78# End:
gnuplot-ggi/patches/010-Makefile.in.patch
1--- a/Makefile.in.orig 2010-03-13 22:20:04.000000000 +0100
2@@ -240,7 +240,7 @@
3 top_builddir = @top_builddir@
4 top_srcdir = @top_srcdir@
5 AUTOMAKE_OPTIONS = foreign 1.2h
6-SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share
7+SUBDIRS = config m4 term src $(LISPDIR) share
8 EXTRA_DIST = BUGS CodeStyle Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \
9 Makefile.maint PATCHLEVEL PGPKEYS PORTING README README.1ST \
10 VERSION configure.vms pm3d
gnuplot-ggi/patches/020-ggi-setmode.patch
1Index: gnuplot-4.4.0/term/ggi.trm
2===================================================================
3--- gnuplot-4.4.0.orig/term/ggi.trm 2011-01-04 21:47:00.000000000 +0100
4@@ -374,6 +374,7 @@
5     /* user specified mode */
6     if (!ggiParseMode(GGI_mode_spec, &mode)) {
7         mode.frames = GGI_frames;
8+ ggiCheckMode(GGIvisual, &mode);
9         if (!ggiSetMode(GGIvisual, &mode)) {
10         success = 1;
11         }

Archive Download the corresponding diff file



interactive