[package] add gnuplot (#7764), patch from obsy
[openwrt/svn-archive/archive.git] / utils / gnuplot / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gnuplot
4 PKG_VERSION:=4.4.0
5 PKG_RELEASE:=1
6
7 PKG_INSTALL=1
8
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_SOURCE_URL:=@SF/gnuplot
11 PKG_MD5SUM:=e708665bd512153ad5c35252fe499059
12
13 include $(INCLUDE_DIR)/package.mk
14
15 EXTRA_LDFLAGS += \
16 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
17
18 CONFIGURE_VARS += \
19 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
20 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
21 LIBS="-nodefaultlibs -luClibc++ -lpthread -lgcc"
22
23 define Package/gnuplot
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+libncurses +uclibcxx +zlib +libpng +libfreetype +libgd
27 TITLE:=A portable command-line driven graphing utility
28 URL:=http://sourceforge.net/projects/gnuplot/
29 endef
30
31 define Package/gnuplot/description
32 Gnuplot is a portable command-line driven graphing utility for linux, OS/2,
33 MS Windows, OSX, VMS, and many other platforms.
34 endef
35
36 CONFIGURE_ARGS += \
37 --without-x \
38 --disable-mouse \
39 --without-tutorial \
40 --without-row-help \
41 --without-lisp-files
42
43 define Package/gnuplot/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,gnuplot))