gnuplot.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ################################################################################
  2. #
  3. # gnuplot
  4. #
  5. ################################################################################
  6. GNUPLOT_VERSION = 6.0.0
  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_VALID = YES
  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. --without-qt
  25. # relocation truncated to fit: R_68K_GOT16O
  26. ifeq ($(BR2_m68k_cf),y)
  27. GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
  28. endif
  29. ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
  30. GNUPLOT_CONF_OPTS += --with-gd
  31. GNUPLOT_DEPENDENCIES += host-pkgconf gd
  32. else
  33. GNUPLOT_CONF_OPTS += --without-gd
  34. endif
  35. ifeq ($(BR2_PACKAGE_READLINE),y)
  36. GNUPLOT_CONF_OPTS += --with-readline=gnu
  37. GNUPLOT_DEPENDENCIES += readline
  38. else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
  39. GNUPLOT_CONF_OPTS += --with-readline=bsd
  40. GNUPLOT_DEPENDENCIES += libedit
  41. endif
  42. # Remove Javascript scripts, lua scripts, PostScript files
  43. define GNUPLOT_REMOVE_UNNEEDED_FILES
  44. $(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
  45. endef
  46. GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
  47. $(eval $(autotools-package))