mariadb: update to 10.9.8
[feed/packages.git] / utils / gnuplot / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gnuplot
4 PKG_VERSION:=5.4.2
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:=e57c75e1318133951d32a83bcdc4aff17fed28722c4e71f2305cfc2ae1cae7ba
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 CONFIGURE_VARS += ac_cv_have_x="have_x=no"
33
34 # Since Qt is disabled there is no C++ code, so CXX is forced
35 # to CC in order to avoid dependency on libstdcpp. This is
36 # horrible, but 'DEPENDS:=+libstdcpp' does not work for some
37 # reason.
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CXX="$(TARGET_CC_NOCACHE)"
41 endef
42
43 define Package/gnuplot/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gnuplot $(1)/usr/bin
46 endef
47
48 $(eval $(call BuildPackage,gnuplot))
49