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