267c6fed6aff27b67cea03bd4bdffb7fa8d813ce
[feed/packages.git] / utils / gnuplot / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gnuplot
4 PKG_VERSION:=5.4.0
5 PKG_RELEASE:=2
6 PKG_MAINTAINER:=Matteo Cicuttin <datafl4sh@toxicnet.eu>
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/gnuplot-$(PKG_VERSION)
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_SOURCE_URL:=@SF/gnuplot
11 PKG_HASH:=eb4082f03a399fd1e9e2b380cf7a4f785e77023d8dcc7e17570c1b5570a49c47
12 PKG_CAT:=zcat
13 PKG_FIXUP:=autoreconf
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/gnuplot
18 SECTION:=utils
19 CATEGORY:=Utilities
20 DEPENDS:=+zlib +libgd +libncursesw +libreadline
21 TITLE:=A portable command-line driven graphing utility
22 URL:=http://www.gnuplot.info/
23 endef
24
25 CONFIGURE_ARGS += \
26 --without-cairo \
27 --with-qt=no \
28 --without-lua \
29 --without-latex \
30 --without-libcerf
31
32 # Since Qt is disabled there is no C++ code, so CXX is forced
33 # to CC in order to avoid dependency on libstdcpp. This is
34 # horrible, but 'DEPENDS:=+libstdcpp' does not work for some
35 # reason.
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CXX="$(TARGET_CC_NOCACHE)"
39 endef
40
41 define Package/gnuplot/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gnuplot $(1)/usr/bin
44 endef
45
46 $(eval $(call BuildPackage,gnuplot))
47