From 8a1f0d44cdbf3b88bfba58f65afd281fdc043d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Wed, 5 Jan 2011 13:45:06 +0100 Subject: [PATCH] gnuplot-ggi: build without mouse support so we can leave plots via keypress --- gnuplot-ggi/Makefile | 5 ++-- gnuplot-ggi/patches/040-nomouse-fixes.patch | 30 +++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 gnuplot-ggi/patches/040-nomouse-fixes.patch diff --git a/gnuplot-ggi/Makefile b/gnuplot-ggi/Makefile index 5f8988f..9b2c478 100644 --- a/gnuplot-ggi/Makefile +++ b/gnuplot-ggi/Makefile @@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gnuplot-ggi PKG_ORIG_NAME=gnuplot PKG_VERSION:=4.4.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_ORIG_NAME)-$(PKG_VERSION) HOST_BUILD_DIR = $(BUILD_DIR_HOST)/$(PKG_ORIG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_ORIG_NAME)-$(PKG_VERSION).tar.gz @@ -94,7 +94,8 @@ CONFIGURE_ARGS += \ --without-row-help \ --without-lisp-files \ --with-ggi \ - --with-gihdir=/usr/share/gnuplot + --with-gihdir=/usr/share/gnuplot \ + --disable-mouse CONFIGURE_VARS += \ CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \ diff --git a/gnuplot-ggi/patches/040-nomouse-fixes.patch b/gnuplot-ggi/patches/040-nomouse-fixes.patch new file mode 100644 index 0000000..b8a9246 --- /dev/null +++ b/gnuplot-ggi/patches/040-nomouse-fixes.patch @@ -0,0 +1,30 @@ +Index: gnuplot-4.4.0/term/ggi.trm +=================================================================== +--- gnuplot-4.4.0.orig/term/ggi.trm 2011-01-05 13:35:52.000000000 +0100 ++++ gnuplot-4.4.0/term/ggi.trm 2011-01-05 13:39:52.000000000 +0100 +@@ -499,6 +499,12 @@ + ggiSetGCForeground(GGIvisual,GGIcolors[linetype]); + } + ++TERM_PUBLIC int ++GGI_y(int32_t y) ++{ ++ return GGIymax - y; ++} ++ + TERM_PUBLIC void GGI_move(unsigned int x, unsigned int y) + { + GGIx=x; +@@ -831,12 +837,6 @@ + } + + TERM_PUBLIC int +-GGI_y(int32_t y) +-{ +- return GGIymax - y; +-} +- +-TERM_PUBLIC int + GGI_eventually_update_modifiers(const ggi_event* event, const int add) + { + int mod = 0;