2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-03-24 16:19:25 +08:00
|
|
|
#
|
|
|
|
# gnuplot
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-03-24 16:19:25 +08:00
|
|
|
|
|
|
|
GNUPLOT_VERSION = 4.6.2
|
|
|
|
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_OPT = --without-x \
|
|
|
|
--disable-raise-console \
|
|
|
|
--disable-mouse \
|
|
|
|
--without-tutorial \
|
|
|
|
--disable-demo \
|
|
|
|
--without-row-help \
|
|
|
|
--disable-history-file \
|
|
|
|
--without-lisp-files \
|
|
|
|
--disable-wxwidgets \
|
|
|
|
--without-lua \
|
|
|
|
--without-latex \
|
|
|
|
--without-cairo
|
|
|
|
|
2013-04-03 09:04:23 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
2013-03-24 16:19:25 +08:00
|
|
|
GNUPLOT_CONF_OPT += --with-gd
|
|
|
|
GNUPLOT_DEPENDENCIES += gd
|
|
|
|
GNUPLOT_CONF_ENV += \
|
|
|
|
ac_cv_path_GDLIB_CONFIG=$(STAGING_DIR)/usr/bin/gdlib-config
|
|
|
|
else
|
|
|
|
GNUPLOT_CONF_OPT += --without-gd
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
GNUPLOT_CONF_OPT += --with-readline=gnu
|
|
|
|
GNUPLOT_DEPENDENCIES += readline
|
|
|
|
else
|
|
|
|
GNUPLOT_CONF_OPT += --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))
|