You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

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