--without-readline is interpreted as --with-readline=builtin since bump to version 5.4.0 in commit263da09323
andb492ea63bd
so add a mandatory dependency to readline or libedit to gnuplot As a side-effect, this will avoid the following build failure with builtin readline raised since bump to version 6.0.0 in commit5f11ce4aea
: /home/autobuild/autobuild/instance-14/output-1/host/lib/gcc/arm-buildroot-linux-gnueabi/13.2.0/../../../../arm-buildroot-linux-gnueabi/bin/ld: history.o: in function `read_history': history.c:(.text+0xa8): undefined reference to `gp_read_history' Fixes:5f11ce4aea
- http://autobuild.buildroot.org/results/5e45dd8f9071694110c8481f222b9b07b6a97ef3 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# gnuplot
|
|
#
|
|
################################################################################
|
|
|
|
GNUPLOT_VERSION = 6.0.0
|
|
GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
|
|
GNUPLOT_LICENSE = gnuplot license (open source)
|
|
GNUPLOT_LICENSE_FILES = Copyright
|
|
GNUPLOT_CPE_ID_VALID = YES
|
|
|
|
GNUPLOT_AUTORECONF = YES
|
|
|
|
GNUPLOT_CONF_OPTS = \
|
|
--without-x \
|
|
--disable-raise-console \
|
|
--disable-mouse \
|
|
--without-tutorial \
|
|
--disable-demo \
|
|
--without-row-help \
|
|
--disable-history-file \
|
|
--disable-wxwidgets \
|
|
--without-lua \
|
|
--without-latex \
|
|
--without-cairo \
|
|
--without-qt
|
|
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
|
GNUPLOT_CONF_OPTS += --with-gd
|
|
GNUPLOT_DEPENDENCIES += host-pkgconf gd
|
|
else
|
|
GNUPLOT_CONF_OPTS += --without-gd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
GNUPLOT_CONF_OPTS += --with-readline=gnu
|
|
GNUPLOT_DEPENDENCIES += readline
|
|
else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
|
GNUPLOT_CONF_OPTS += --with-readline=bsd
|
|
GNUPLOT_DEPENDENCIES += libedit
|
|
endif
|
|
|
|
# Remove Javascript scripts, lua scripts, PostScript files
|
|
define GNUPLOT_REMOVE_UNNEEDED_FILES
|
|
$(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
|
|
endef
|
|
|
|
GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
|
|
|
|
$(eval $(autotools-package))
|