mirror of
https://git.busybox.net/buildroot.git
synced 2025-01-09 22:14:20 +08:00
33fbea7f85
Drop gdlib-config and use pkg-config to find gd. Indeed, gdlib.pc is available since version 2.1.0 and071a2a94ee
and gdlib-config has been dropped from version 2.3.0 gnuplot supports pkg-config to find gd since version 5.4.1 and4a64124cf5
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# gnuplot
|
|
#
|
|
################################################################################
|
|
|
|
GNUPLOT_VERSION = 5.4.1
|
|
GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
|
|
GNUPLOT_LICENSE = gnuplot license (open source)
|
|
GNUPLOT_LICENSE_FILES = Copyright
|
|
|
|
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
|
|
|
|
# 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
|
|
GNUPLOT_CONF_OPTS += --without-readline
|
|
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))
|