blob: 66d829419e46d7ed76212a2a88674038e517bc7f (
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
# $FreeBSD$
PORTNAME= gnuplot
PORTVERSION= 4.6.3
CATEGORIES= math graphics
MASTER_SITES= SF
MAINTAINER= glewis@FreeBSD.org
COMMENT= A command-driven interactive function plotting program
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-lasergnu \
--with-readline=gnu \
--without-linux-vga \
--without-lisp-files \
--without-tutorial \
--with-bitmap-terminals
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= CAIRO GD GRIDBOX PDF PLOT TETEX THINSPLINES WX X11
CAIRO_DESC= Enable CAIRO support
GD_DESC= Enable GD support
GRIDBOX_DESC= Use the gridbox optimization for hidden3d
PDF_DESC= Enable PDF support
PLOT_DESC= Enable plot support
TETEX_DESC= Search kpsexpand at run-time
THINSPLINES_DESC= Enable thin plate splines for grids in dgrid3d
WX_DESC= Enable WX support
X11_DESC= Enable X11 support
OPTIONS_DEFAULT=CAIRO GD PDF PLOT TETEX WX X11
MAN1= gnuplot.1 lasergnu.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCAIRO}
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
USE_GNOME+= pango
.else
CONFIGURE_ARGS+= --without-cairo
.endif
.if ${PORT_OPTIONS:MGD}
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
CONFIGURE_ARGS+= --with-gd=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-gd
.endif
.if ! ${PORT_OPTIONS:MGRIDBOX}
CONFIGURE_ARGS+= --disable-h3d-quadtree --enable-h3d-gridbox
.endif
.if ${PORT_OPTIONS:MPDF}
LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-pdf
.endif
.if ${PORT_OPTIONS:MPLOT}
USE_XORG+= xaw xmu xt xext
LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-plot
.endif
.if ${PORT_OPTIONS:MTETEX}
BUILD_DEPENDS+= kpsexpand:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS+= kpsexpand:${PORTSDIR}/print/teTeX-base
CONFIGURE_ARGS+= --with-kpsexpand \
--with-texdir=${LOCALBASE}/share/texmf/tex/latex/gnuplot
PLIST_SUB+= TETEX=""
.else
PLIST_SUB+= TETEX="@comment "
.endif
.if ${PORT_OPTIONS:MTHINSPLINES}
CONFIGURE_ARGS+= --enable-thin-splines
.else
CONFIGURE_ARGS+= --disable-thin-splines
.endif
.if ${PORT_OPTIONS:MWX}
USE_WX= 2.5-2.8
WX_CONF_ARGS= absolute
.else
CONFIGURE_ARGS+= --disable-wxwidgets
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11
PLIST_SUB+= X11=""
.else
CONFIGURE_ARGS+= --without-x
PLIST_SUB+= X11="@comment "
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES= *
.endif
post-patch:
.if ! ${PORT_OPTIONS:MTETEX}
@${REINPLACE_CMD} -e \
'/^install:/s/install-am//' ${WRKSRC}/share/LaTeX/Makefile.in
.endif
@${REINPLACE_CMD} -e \
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
@${FIND} "${WRKSRC}" -name '*.orig' -delete
.if !defined(NOPORTDOCS)
post-build:
@cd ${WRKSRC}/docs && ${MAKE} groff
.endif
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/psdoc
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
gnuplot.ps ${DOCSDIR}
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${DOCSDIR}/psdoc
.endif
check test: build
@( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; )
.include <bsd.port.mk>
|