[packages] gnuplot: update to 4.4.4, add missing dependencies & copyright, disable...
[packages.git] / utils / gnuplot / Makefile
1 #
2 # Copyright (C) 2010-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gnuplot
11 PKG_VERSION:=4.4.4
12 PKG_RELEASE:=1
13
14 PKG_INSTALL:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/gnuplot
18 PKG_MD5SUM:=97a43328e81e57ebed7f135ca0c07e82
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 TARGET_LDFLAGS+= \
24         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
25
26 CONFIGURE_VARS += \
27         CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
28         CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
29         LIBS="-nodefaultlibs -luClibc++ -lpthread $(LIBGCC_S)"
30
31 define Package/gnuplot
32   SECTION:=utils
33   CATEGORY:=Utilities
34   DEPENDS:=+libncurses +uclibcxx +zlib +libpng +libfreetype +libgd \
35         $(INTL_DEPENDS) $(ICONV_DEPENDS) +libpthread +libreadline
36   TITLE:=A portable command-line driven graphing utility
37   URL:=http://sourceforge.net/projects/gnuplot/
38 endef
39
40 define Package/gnuplot/description
41   Gnuplot is a portable command-line driven graphing utility for linux, OS/2,
42   MS Windows, OSX, VMS, and many other platforms.
43 endef
44
45 CONFIGURE_ARGS += \
46         --without-x \
47         --disable-mouse \
48         --without-tutorial \
49         --without-row-help \
50         --without-lisp-files \
51         --disable-wxwidgets \
52         --without-lua
53
54 define Package/gnuplot/install
55         $(INSTALL_DIR) $(1)/usr/bin
56         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,gnuplot))