1################################################################################
2#
3# gnuplot
4#
5################################################################################
6
7GNUPLOT_VERSION = 6.0.0
8GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
9GNUPLOT_LICENSE = gnuplot license (open source)
10GNUPLOT_LICENSE_FILES = Copyright
11GNUPLOT_CPE_ID_VALID = YES
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	--without-qt
28
29# relocation truncated to fit: R_68K_GOT16O
30ifeq ($(BR2_m68k_cf),y)
31GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
32endif
33
34ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
35GNUPLOT_CONF_OPTS += --with-gd
36GNUPLOT_DEPENDENCIES += host-pkgconf gd
37else
38GNUPLOT_CONF_OPTS += --without-gd
39endif
40
41ifeq ($(BR2_PACKAGE_READLINE),y)
42GNUPLOT_CONF_OPTS += --with-readline=gnu
43GNUPLOT_DEPENDENCIES += readline
44else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
45GNUPLOT_CONF_OPTS += --with-readline=bsd
46GNUPLOT_DEPENDENCIES += libedit
47endif
48
49# Remove Javascript scripts, lua scripts, PostScript files
50define GNUPLOT_REMOVE_UNNEEDED_FILES
51	$(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
52endef
53
54GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
55
56$(eval $(autotools-package))
57