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 | |
| 10 | include $(TOPDIR)/rules.mk |
| 11 | |
| 12 | PKG_NAME:=gnuplot-ggi |
| 13 | PKG_ORIG_NAME=gnuplot |
| 14 | PKG_VERSION:=4.4.0 |
| 15 | PKG_RELEASE:=2 |
| 16 | PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_ORIG_NAME)-$(PKG_VERSION) |
| 17 | PKG_INSTALL=1 |
| 18 | |
| 19 | PKG_SOURCE:=$(PKG_ORIG_NAME)-$(PKG_VERSION).tar.gz |
| 20 | PKG_SOURCE_URL:=@SF/gnuplot |
| 21 | PKG_MD5SUM:=e708665bd512153ad5c35252fe499059 |
| 22 | |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | |
| 25 | TARGET_CFLAGS += \ |
| 26 | -I$(STAGING_DIR)/usr/lib/libintl/include \ |
| 27 | -I$(STAGING_DIR)/usr/lib/libiconv/include |
| 28 | |
| 29 | TARGET_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 | |
| 34 | CONFIGURE_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 | |
| 39 | define 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/ |
| 45 | endef |
| 46 | |
| 47 | define 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. |
| 50 | endef |
| 51 | |
| 52 | CONFIGURE_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 | |
| 67 | define Package/gnuplot-ggi/install |
| 68 | $(INSTALL_DIR) $(1)/usr/bin |
| 69 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/ |
| 70 | endef |
| 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 |
| 1 | Index: 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 | } |