Lines 6-12
Link Here
|
6 |
MASTER_SITES= SF |
6 |
MASTER_SITES= SF |
7 |
|
7 |
|
8 |
MAINTAINER= glewis@FreeBSD.org |
8 |
MAINTAINER= glewis@FreeBSD.org |
9 |
COMMENT= A command-driven interactive function plotting program |
9 |
COMMENT= Command-line driven graphing utility |
10 |
|
10 |
|
11 |
GNU_CONFIGURE= yes |
11 |
GNU_CONFIGURE= yes |
12 |
CONFIGURE_ARGS+=--with-lasergnu \ |
12 |
CONFIGURE_ARGS+=--with-lasergnu \ |
Lines 17-32
Link Here
|
17 |
--with-bitmap-terminals |
17 |
--with-bitmap-terminals |
18 |
MAKE_JOBS_SAFE= yes |
18 |
MAKE_JOBS_SAFE= yes |
19 |
|
19 |
|
20 |
OPTIONS_DEFINE= CAIRO GD GRIDBOX PDF PLOT TETEX THINSPLINES WX X11 |
20 |
OPTIONS_DEFINE= CAIRO EXAMPLES GD GRIDBOX PDF PLOT TETEX THINSPLINES WX X11 |
21 |
CAIRO_DESC= Enable CAIRO support |
|
|
22 |
GD_DESC= Enable GD support |
23 |
GRIDBOX_DESC= Use the gridbox optimization for hidden3d |
21 |
GRIDBOX_DESC= Use the gridbox optimization for hidden3d |
24 |
PDF_DESC= Enable PDF support |
|
|
25 |
PLOT_DESC= Enable plot support |
22 |
PLOT_DESC= Enable plot support |
26 |
TETEX_DESC= Search kpsexpand at run-time |
23 |
TETEX_DESC= Search kpsexpand at run-time |
27 |
THINSPLINES_DESC= Enable thin plate splines for grids in dgrid3d |
24 |
THINSPLINES_DESC= Enable thin plate splines for grids in dgrid3d |
28 |
WX_DESC= Enable WX support |
25 |
WX_DESC= Enable WX support |
29 |
X11_DESC= Enable X11 support |
|
|
30 |
|
26 |
|
31 |
OPTIONS_DEFAULT=CAIRO GD PDF PLOT TETEX WX X11 |
27 |
OPTIONS_DEFAULT=CAIRO GD PDF PLOT TETEX WX X11 |
32 |
|
28 |
|
Lines 35-48
Link Here
|
35 |
.include <bsd.port.options.mk> |
31 |
.include <bsd.port.options.mk> |
36 |
|
32 |
|
37 |
.if ${PORT_OPTIONS:MCAIRO} |
33 |
.if ${PORT_OPTIONS:MCAIRO} |
38 |
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo |
34 |
LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo |
39 |
USE_GNOME+= pango |
35 |
USE_GNOME+= pango |
40 |
.else |
36 |
.else |
41 |
CONFIGURE_ARGS+= --without-cairo |
37 |
CONFIGURE_ARGS+= --without-cairo |
42 |
.endif |
38 |
.endif |
43 |
|
39 |
|
44 |
.if ${PORT_OPTIONS:MGD} |
40 |
.if ${PORT_OPTIONS:MGD} |
45 |
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd |
41 |
LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd |
46 |
CONFIGURE_ARGS+= --with-gd=${LOCALBASE} |
42 |
CONFIGURE_ARGS+= --with-gd=${LOCALBASE} |
47 |
.else |
43 |
.else |
48 |
CONFIGURE_ARGS+= --without-gd |
44 |
CONFIGURE_ARGS+= --without-gd |
Lines 53-59
Link Here
|
53 |
.endif |
49 |
.endif |
54 |
|
50 |
|
55 |
.if ${PORT_OPTIONS:MPDF} |
51 |
.if ${PORT_OPTIONS:MPDF} |
56 |
LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib |
52 |
LIB_DEPENDS+= pdf:${PORTSDIR}/print/pdflib |
57 |
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE} |
53 |
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE} |
58 |
.else |
54 |
.else |
59 |
CONFIGURE_ARGS+= --without-pdf |
55 |
CONFIGURE_ARGS+= --without-pdf |
Lines 61-67
Link Here
|
61 |
|
57 |
|
62 |
.if ${PORT_OPTIONS:MPLOT} |
58 |
.if ${PORT_OPTIONS:MPLOT} |
63 |
USE_XORG+= xaw xmu xt xext |
59 |
USE_XORG+= xaw xmu xt xext |
64 |
LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils |
60 |
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils |
65 |
CONFIGURE_ARGS+= --with-plot=${LOCALBASE} |
61 |
CONFIGURE_ARGS+= --with-plot=${LOCALBASE} |
66 |
.else |
62 |
.else |
67 |
CONFIGURE_ARGS+= --without-plot |
63 |
CONFIGURE_ARGS+= --without-plot |
Lines 98-107
Link Here
|
98 |
PLIST_SUB+= X11="@comment " |
94 |
PLIST_SUB+= X11="@comment " |
99 |
.endif |
95 |
.endif |
100 |
|
96 |
|
101 |
.if !defined(NOPORTDOCS) |
97 |
.if ${PORT_OPTIONS:MDOCS} |
102 |
PORTDOCS= * |
98 |
PORTDOCS= * |
103 |
.endif |
99 |
.endif |
104 |
.if !defined(NOPORTEXAMPLES) |
100 |
.if ${PORT_OPTIONS:MEXAMPLES} |
105 |
PORTEXAMPLES= * |
101 |
PORTEXAMPLES= * |
106 |
.endif |
102 |
.endif |
107 |
|
103 |
|
Lines 114-120
Link Here
|
114 |
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in |
110 |
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in |
115 |
@${FIND} "${WRKSRC}" -name '*.orig' -delete |
111 |
@${FIND} "${WRKSRC}" -name '*.orig' -delete |
116 |
|
112 |
|
117 |
.if !defined(NOPORTDOCS) |
113 |
.if ${PORT_OPTIONS:MDOCS} |
118 |
post-build: |
114 |
post-build: |
119 |
@cd ${WRKSRC}/docs && ${MAKE} groff |
115 |
@cd ${WRKSRC}/docs && ${MAKE} groff |
120 |
.endif |
116 |
.endif |
Lines 126-132
Link Here
|
126 |
cd ${WRKSRC}/demo && ${FIND} . \ |
122 |
cd ${WRKSRC}/demo && ${FIND} . \ |
127 |
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} |
123 |
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} |
128 |
.endif |
124 |
.endif |
129 |
.if !defined(NOPORTDOCS) |
125 |
|
|
|
126 |
.if ${PORT_OPTIONS:MDOCS} |
130 |
@${MKDIR} ${DOCSDIR}/psdoc |
127 |
@${MKDIR} ${DOCSDIR}/psdoc |
131 |
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \ |
128 |
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \ |
132 |
gnuplot.ps ${DOCSDIR} |
129 |
gnuplot.ps ${DOCSDIR} |