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