AA: xl2tpd: backport r34537
[12.09/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.6.0
12 PKG_RELEASE:=2
13
14 PKG_INSTALL:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/gnuplot
18 PKG_MD5SUM:=8e6e92b4596ea0eb75e16a57fc79efec
19
20 include $(INCLUDE_DIR)/uclibc++.mk
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 TARGET_LDFLAGS+= \
25         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
26
27 CONFIGURE_VARS += \
28         CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
29         LIBS="-lpthread"
30
31 define Package/gnuplot
32   SECTION:=utils
33   CATEGORY:=Utilities
34   DEPENDS:=+libncurses $(CXX_DEPENDS) +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         --without-cairo
54
55 define Package/gnuplot/install
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,gnuplot))