2011-01-04 22:56:22 +02:00
|
|
|
#
|
|
|
|
# Gnuplot package for OpenWrt.
|
|
|
|
#
|
|
|
|
# Adapted to support LibGGI video output by
|
|
|
|
# David Kuehling <dvdkhlng TA gmx TOD de>
|
|
|
|
#
|
|
|
|
# License GPLv2 or later. NO WARRANTY.
|
|
|
|
#
|
|
|
|
|
2011-01-09 13:03:26 +02:00
|
|
|
# Todo for GGI support (svgalib works, so GGI is disabled for now)
|
2011-01-06 18:17:15 +02:00
|
|
|
#
|
|
|
|
# - After 21acf8eb423af24ca00835192239d50f2e4570a8 I once had proper plot
|
|
|
|
# display from Octave (but didn't came back to the console afterwards).
|
|
|
|
# Even after building again with mouse support, this isn't working any more.
|
|
|
|
# Why? Must be related to the 050-ggi-close.patch but that patch is doing
|
|
|
|
# close to nothing.
|
|
|
|
#
|
|
|
|
# - Somebody seems to mess with the console/stdin. Even when using
|
|
|
|
# GGI_FBDEV_OPTIONS=-noinput and setting GGI_NEWVT. Can be easily tested
|
|
|
|
# when launching from ssh.
|
|
|
|
#
|
|
|
|
# - When using GGI_NEWVT in Octave, it seems like somebody is injecting text
|
|
|
|
# or something into Octave's stdin or into the file handles Octave uses. It
|
|
|
|
# would abort with some strange error message noting that it doesn't know
|
|
|
|
# some corrupted command name (stuff like "setset"). Very frightening.
|
|
|
|
|
2011-01-04 22:56:22 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
PKG_NAME:=gnuplot-gfx
|
2011-01-04 22:56:22 +02:00
|
|
|
PKG_ORIG_NAME=gnuplot
|
2011-01-09 13:03:26 +02:00
|
|
|
PKG_VERSION:=4.4.2
|
|
|
|
PKG_RELEASE:=1
|
2011-01-05 14:30:56 +02:00
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_ORIG_NAME)-$(PKG_VERSION)
|
|
|
|
HOST_BUILD_DIR = $(BUILD_DIR_HOST)/$(PKG_ORIG_NAME)-$(PKG_VERSION)
|
2011-01-04 22:56:22 +02:00
|
|
|
PKG_SOURCE:=$(PKG_ORIG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/gnuplot
|
2011-01-09 13:03:26 +02:00
|
|
|
PKG_MD5SUM:=a4f0dd89f9b9334890464f687ddd9f50
|
2011-01-04 22:56:22 +02:00
|
|
|
|
2011-01-05 14:30:56 +02:00
|
|
|
PKG_INSTALL=1
|
2011-01-06 18:17:15 +02:00
|
|
|
PKG_BUILD_DEPENDS:= gnuplot-gfx/host libtool/host
|
2011-01-04 22:56:22 +02:00
|
|
|
|
2011-01-05 14:30:56 +02:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-01-04 22:56:22 +02:00
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx/Default
|
2011-01-04 22:56:22 +02:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=A portable command-line driven graphing utility
|
|
|
|
URL:=http://sourceforge.net/projects/gnuplot/
|
|
|
|
endef
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx/Default/description
|
2011-01-04 22:56:22 +02:00
|
|
|
Gnuplot is a portable command-line driven graphing utility for linux, OS/2,
|
2011-01-05 14:30:56 +02:00
|
|
|
MS Windows, OSX, VMS, and many other platforms. This version is compiled
|
|
|
|
to use LibGGI as default terminal, allowing gnuplot to draw directly to
|
|
|
|
the Linux framebuffer.
|
|
|
|
endef
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx
|
|
|
|
$(call Package/gnuplot-gfx/Default)
|
|
|
|
DEPENDS:=+libncurses +uclibcxx +zlib +libpng +libfreetype +libgd +libintl +libiconv +svgalib
|
2011-01-05 14:30:56 +02:00
|
|
|
TITLE+=
|
|
|
|
endef
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx-gih
|
|
|
|
$(call Package/gnuplot-gfx/Default)
|
|
|
|
DEPENDS:=+gnuplot-gfx
|
2011-01-05 14:30:56 +02:00
|
|
|
TITLE+=(integrated help)
|
|
|
|
endef
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx-gih/description
|
|
|
|
$(call Package/gnuplot-gfx/Default/description)
|
2011-01-05 14:30:56 +02:00
|
|
|
This package contains the documentation files needed for GNUplot\'s internal
|
|
|
|
help system.
|
|
|
|
endef
|
|
|
|
|
|
|
|
##
|
|
|
|
## Compile for the host
|
|
|
|
##
|
|
|
|
|
|
|
|
# We need the doc2gih tool compiled on the *host* to get GNUplot's online
|
|
|
|
# documentation when compiling for the target.
|
|
|
|
|
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
--without-x \
|
|
|
|
--without-tutorial \
|
|
|
|
--without-lisp-files \
|
|
|
|
--without-ggi
|
|
|
|
|
|
|
|
define Host/Configure
|
|
|
|
$(call Host/Configure/Default)
|
2011-01-04 22:56:22 +02:00
|
|
|
endef
|
|
|
|
|
2011-01-05 14:30:56 +02:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/docs doc2gih alldoc2gih
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/docs/{doc2gih,alldoc2gih} \
|
|
|
|
$(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
##
|
|
|
|
## Compile for the target
|
|
|
|
##
|
|
|
|
|
2011-01-04 22:56:22 +02:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-x \
|
|
|
|
--without-tutorial \
|
|
|
|
--without-row-help \
|
|
|
|
--without-lisp-files \
|
2011-01-06 18:17:15 +02:00
|
|
|
--without-ggi \
|
|
|
|
--with-linux-vga \
|
|
|
|
--with-gihdir=/usr/share/gnuplot
|
|
|
|
|
|
|
|
# Without mouse, gnuplot works in console mode where it closes the graphics
|
|
|
|
# device after keypress to get into text mode. This makes it impossible to
|
|
|
|
# use Octave which relies on proper suspend/resume behaviour with multiplot.
|
|
|
|
|
|
|
|
#--disable-mouse
|
|
|
|
|
2011-01-05 14:30:56 +02:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lpthread -lgcc"
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
TARGET_CPPFLAGS += -DDEFAULTTERM=\\\"linux\\\"
|
2011-01-05 14:30:56 +02:00
|
|
|
|
|
|
|
# todo: insto cppflags
|
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libiconv/include
|
|
|
|
|
|
|
|
TARGET_LDFLAGS+= \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib
|
2011-01-04 22:56:22 +02:00
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
# todo: remove that when stable
|
|
|
|
MAKE_FLAGS += -j2
|
|
|
|
|
2011-01-04 22:56:22 +02:00
|
|
|
# cannot disable mouse for ggi: compilation fails. (todo: fix)
|
|
|
|
# --disable-mouse
|
|
|
|
|
|
|
|
# Use via 'set terminal ggi S320x240x[C24/32]V320x240F1' (?)
|
|
|
|
# how to set this as default?
|
|
|
|
|
|
|
|
#TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx/install
|
2011-01-04 22:56:22 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2011-01-06 18:17:15 +02:00
|
|
|
define Package/gnuplot-gfx-gih/install
|
2011-01-05 14:30:56 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/gnuplot/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/gnuplot/gnuplot.gih \
|
|
|
|
$(1)/usr/share/gnuplot/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
2011-01-06 18:17:15 +02:00
|
|
|
$(eval $(call BuildPackage,gnuplot-gfx))
|
|
|
|
$(eval $(call BuildPackage,gnuplot-gfx-gih))
|
2011-01-04 22:56:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
# The following comments configure the Emacs editor. Just ignore them.
|
|
|
|
# Local Variables:
|
2011-01-06 18:17:15 +02:00
|
|
|
# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/gnuplot-gfx/compile -j2 V=99"
|
2011-01-04 22:56:22 +02:00
|
|
|
# End:
|