summaryrefslogtreecommitdiffstats
path: root/rules/gnuplot.make
blob: d47c3d9491efbd0e2c4eb2be0d299bbed4a18ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# -*-makefile-*-
#
# Copyright (C) 2004 by Robert Schwebel
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_GNUPLOT) += gnuplot

#
# Paths and names
#
GNUPLOT_VERSION	:= 4.6.7
GNUPLOT_MAJ_VER := $(basename $(GNUPLOT_VERSION))
GNUPLOT_MD5	:= fbcb4715acf228fcd2957f9d218b9167
GNUPLOT		:= gnuplot-$(GNUPLOT_VERSION)
GNUPLOT_SUFFIX	:= tar.gz
GNUPLOT_URL	:= $(call ptx/mirror, SF, gnuplot/$(GNUPLOT).$(GNUPLOT_SUFFIX))
GNUPLOT_SOURCE	:= $(SRCDIR)/$(GNUPLOT).$(GNUPLOT_SUFFIX)
GNUPLOT_DIR	:= $(BUILDDIR)/$(GNUPLOT)


# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

GNUPLOT_PATH	:= PATH=$(CROSS_PATH)
GNUPLOT_ENV	:= $(CROSS_ENV)

#
# autoconf
#
GNUPLOT_AUTOCONF = \
	$(CROSS_AUTOCONF_USR) \
	--disable-history-file \
	--$(call ptx/endis, PTXCONF_GNUPLOT_X)-mouse \
	--disable-x11-mbfonts \
	--disable-x11-external \
	--disable-volatile-data \
	--disable-raise-console \
	--disable-objects \
	--disable-macros \
	--disable-h3d-quadtree \
	--disable-h3d-gridbox \
	--disable-wxwidgets \
	--enable-backwards-compatibility \
	--disable-stats \
	--disable-qt \
	--without-lispdir \
	--without-latex \
	--without-kpsexpand \
	--$(call ptx/wwo, PTXCONF_GNUPLOT_X)-x \
	--without-lasergnu \
	--without-linux-vga \
	--without-ggi \
	--without-xmi \
	--with-readline=builtin \
	--$(call ptx/wwo, PTXCONF_GNUPLOT_GD)-gd \
	--$(call ptx/wwo, PTXCONF_GNUPLOT_PDF)-pdf \
	--without-lua \
	--without-cwdrc \
	--without-lisp-files \
	--without-row-help \
	--without-tutorial \
	--without-wx-config \
	--without-bitmap-terminals \
	--without-cairo

GNUPLOT_MAKE_OPT := -C src

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/gnuplot.targetinstall:
	@$(call targetinfo)

	@$(call install_init, gnuplot)
	@$(call install_fixup, gnuplot,PRIORITY,optional)
	@$(call install_fixup, gnuplot,SECTION,base)
	@$(call install_fixup, gnuplot,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, gnuplot,DESCRIPTION,missing)

	@$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/bin/gnuplot)

ifdef PTXCONF_GNUPLOT_HELP
	@$(call install_copy, gnuplot, 0, 0, 0644, -, \
		/usr/share/gnuplot/$(GNUPLOT_MAJ_VER)/gnuplot.gih)
endif

ifdef PTXCONF_GNUPLOT_POSTSCRIPT
	@$(call install_tree, gnuplot, 0, 0, -, \
		/usr/share/gnuplot/$(GNUPLOT_MAJ_VER)/PostScript)
endif

ifdef PTXCONF_GNUPLOT_JS
	@$(call install_tree, gnuplot, 0, 0, -, \
		/usr/share/gnuplot/$(GNUPLOT_MAJ_VER)/js)
endif

ifdef PTXCONF_GNUPLOT_X
	@$(call install_copy, gnuplot, 0, 0, 0755, -, \
		/usr/libexec/gnuplot/$(GNUPLOT_MAJ_VER)/gnuplot_x11)
endif

	@$(call install_finish, gnuplot)

	@$(call touch)

# vim: syntax=make