gnuplot.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ################################################################################
  2. #
  3. # gnuplot
  4. #
  5. ################################################################################
  6. GNUPLOT_VERSION = 5.4.1
  7. GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
  8. GNUPLOT_LICENSE = gnuplot license (open source)
  9. GNUPLOT_LICENSE_FILES = Copyright
  10. GNUPLOT_CPE_ID_VENDOR = gnuplot_project
  11. GNUPLOT_AUTORECONF = YES
  12. GNUPLOT_CONF_OPTS = \
  13. --without-x \
  14. --disable-raise-console \
  15. --disable-mouse \
  16. --without-tutorial \
  17. --disable-demo \
  18. --without-row-help \
  19. --disable-history-file \
  20. --disable-wxwidgets \
  21. --without-lua \
  22. --without-latex \
  23. --without-cairo
  24. # relocation truncated to fit: R_68K_GOT16O
  25. ifeq ($(BR2_m68k_cf),y)
  26. GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
  27. endif
  28. ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
  29. GNUPLOT_CONF_OPTS += --with-gd
  30. GNUPLOT_DEPENDENCIES += host-pkgconf gd
  31. else
  32. GNUPLOT_CONF_OPTS += --without-gd
  33. endif
  34. ifeq ($(BR2_PACKAGE_READLINE),y)
  35. GNUPLOT_CONF_OPTS += --with-readline=gnu
  36. GNUPLOT_DEPENDENCIES += readline
  37. else
  38. GNUPLOT_CONF_OPTS += --without-readline
  39. endif
  40. # Remove Javascript scripts, lua scripts, PostScript files
  41. define GNUPLOT_REMOVE_UNNEEDED_FILES
  42. $(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
  43. endef
  44. GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
  45. $(eval $(autotools-package))