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.

49 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gnuplot
  3. PKG_VERSION:=5.4.2
  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:=e57c75e1318133951d32a83bcdc4aff17fed28722c4e71f2305cfc2ae1cae7ba
  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. CONFIGURE_VARS += ac_cv_have_x="have_x=no"
  27. # Since Qt is disabled there is no C++ code, so CXX is forced
  28. # to CC in order to avoid dependency on libstdcpp. This is
  29. # horrible, but 'DEPENDS:=+libstdcpp' does not work for some
  30. # reason.
  31. define Build/Compile
  32. $(MAKE) -C $(PKG_BUILD_DIR) \
  33. CXX="$(TARGET_CC_NOCACHE)"
  34. endef
  35. define Package/gnuplot/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gnuplot $(1)/usr/bin
  38. endef
  39. $(eval $(call BuildPackage,gnuplot))