gnuplot.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ################################################################################
  2. #
  3. # gnuplot
  4. #
  5. ################################################################################
  6. GNUPLOT_VERSION = 4.6.6
  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_AUTORECONF = YES
  11. GNUPLOT_CONF_OPTS = \
  12. --without-x \
  13. --disable-raise-console \
  14. --disable-mouse \
  15. --without-tutorial \
  16. --disable-demo \
  17. --without-row-help \
  18. --disable-history-file \
  19. --without-lisp-files \
  20. --disable-wxwidgets \
  21. --without-lua \
  22. --without-latex \
  23. --without-cairo
  24. ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
  25. GNUPLOT_CONF_OPTS += --with-gd
  26. GNUPLOT_DEPENDENCIES += gd
  27. GNUPLOT_CONF_ENV += \
  28. ac_cv_path_GDLIB_CONFIG=$(STAGING_DIR)/usr/bin/gdlib-config
  29. else
  30. GNUPLOT_CONF_OPTS += --without-gd
  31. endif
  32. ifeq ($(BR2_PACKAGE_READLINE),y)
  33. GNUPLOT_CONF_OPTS += --with-readline=gnu
  34. GNUPLOT_DEPENDENCIES += readline
  35. else
  36. GNUPLOT_CONF_OPTS += --without-readline
  37. endif
  38. # Remove Javascript scripts, lua scripts, PostScript files
  39. define GNUPLOT_REMOVE_UNNEEDED_FILES
  40. $(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
  41. endef
  42. GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
  43. $(eval $(autotools-package))