blob: e78c67fd3716f7a5d6e1fec50bac0e8ca393f165 (
plain) (
blame)
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
|
# $FreeBSD$
PORTNAME= gnuplot
PORTVERSION= 4.6.6
PORTREVISION= 1
CATEGORIES= math graphics
MASTER_SITES= SF
MAINTAINER= glewis@FreeBSD.org
COMMENT= Command-line driven graphing utility
USES= iconv lua pkgconfig
USE_TEX= kpathsea
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ENV= LUA_VER="${LUA_VER}"
CONFIGURE_ARGS+=--with-lasergnu \
--with-readline=gnu \
--with-kpsexpand \
--without-linux-vga \
--without-lisp-files \
--without-tutorial \
--with-bitmap-terminals \
--with-latex \
ac_cv_prog_KPSEXPAND=${LOCALBASE}/bin/kpsexpand \
ac_cv_prog_PLAINTEX=${LOCALBASE}/bin/tex \
ac_cv_prog_LATEX=${LOCALBASE}/bin/latex \
ac_cv_prog_PDFLATEX=${LOCALBASE}/bin/pdflatex
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= CAIRO DOCS EXAMPLES GD GRIDBOX PDF PLOT THINSPLINES WX X11
GRIDBOX_DESC= Use the gridbox optimization for hidden3d
PLOT_DESC= Enable plot support
THINSPLINES_DESC= Enable thin plate splines for grids in dgrid3d
WX_DESC= wxWidgets (formerly wxWindows) support
OPTIONS_DEFAULT=CAIRO GD PLOT WX X11
OPTIONS_SUB= yes
CAIRO_LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo
CAIRO_USE= GNOME=pango
CAIRO_CONFIGURE_WITH= cairo
GD_LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
GD_CONFIGURE_ON= --with-gd=${LOCALBASE}
GD_CONFIGURE_OFF+= --without-gd
GRIDBOX_CONFIGURE_OFF= --disable-h3d-quadtree --enable-h3d-gridbox
PDF_LIB_DEPENDS= libpdf.so:${PORTSDIR}/print/pdflib
PDF_CONFIGURE_ON= --with-pdf=${LOCALBASE}
PDF_CONFIGURE_OFF= --without-pdf
PLOT_USE= XORG=xaw,xmu,xt,xext
PLOT_LIB_DEPENDS= libplot.so:${PORTSDIR}/graphics/plotutils
PLOT_CONFIGURE_ON= --with-plot=${LOCALBASE}
PLOT_CONFIGURE_OFF= --without-plot
THINSPLINES_CONFIGURE_ENABLE= thin-splines
X11_USE= XORG=x11
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWX}
# Version 3.x of WX currently cause gnuplot to crash.
# Do not update without this without testing.
USE_WX= 2.8
WX_UNICODE= yes
WX_CONF_ARGS= absolute
.else
CONFIGURE_ARGS+= --disable-wxwidgets
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^install:/s/install-am//' ${WRKSRC}/share/LaTeX/Makefile.in
@${REINPLACE_CMD} -e \
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e \
's|luaL_checkint(|(int)luaL_checkinteger(|' ${WRKSRC}/term/lua.trm
.if ${PORT_OPTIONS:MDOCS}
post-build:
@cd ${WRKSRC}/docs && ${MAKE} groff
.endif
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/psdoc
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
gnuplot.ps ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${STAGEDIR}${DOCSDIR}/psdoc
.endif
check test: build
@( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; )
.include <bsd.port.mk>
|