pkgsrc/graphics/gnuplot/options.mk
prlw1 7f05fa9554 Update gnuplot to 5.4.0
The lua option is there to enable the TikZ terminal, so install its
LaTeX style files to make use of it.

Replace and deprecate old "set loadpath" command means the list of font
paths is gone.

Highlights:
* Support for 64-bit integer arithmetic
        o All evaluation of expressions and functions uses 64-bit arithmetic
          if supported by the hardware platform.
        o Integer overflow is detected and handled according to user preference.

* Voxel grids
        o Gnuplot now supports operations based on 3D grids of voxel data.
        o The current content of one or more voxel grids can be referenced by
          splot commands to assign colors or other properties to plot elements.
        o Data in a voxel grids can be plotted by splot styles dots, points,
          or isosurface.

* Pixmaps as objects
        o "set pixmap" allows import of a png/jpeg/gif image as a pixmap that
          can be positioned anywhere in a plot or on the page.  Unlike plotting
          "with image", pixmap objects retain their original aspect ratio and
          size independent of axis scaling or rotation.
          Example: http://gnuplot.info/demo_5.4/pixmap.html

* New plot styles and plot options
        o 3D plot style "with polygons" reads polygon faces from a data file.
          These can be used to create a surface or to describe a solid object.
          Example: http://gnuplot.info/demo_5.4/polygons.html
        o "splot $voxelgrid with isosurface" creates a tessellated 3D surface
          enclosing voxels above a requested threshold level.
          Example: http://gnuplot.info/demo_5.4/isosurface.html
        o "set spiderplot" selects a new plotting mode for creating spider
          plots, also known as radar charts. These are essentially parallel
          axis plots in which the axes are arranged radially rather than
          vertically.
          Example: http://gnuplot.info/demo_5.4/spiderplot.html
        o Plot styles "with circles" and "with boxes" can be used in 3D plots.
          Example: http://gnuplot.info/demo_5.4/3Dboxes.html
        o 2D plot style "with arrows" is a variant of "with vectors" in which
          each arrow is specified by x:y:length:angle rather than x:y:dx:dy.
        o pm3d surfaces can have individual fill styles and separate top/bottom
          fill colors.
          Example: http://gnuplot.info/demo_5.4/hidden_compare.html
        o pm3d option "noclipcb" causes quadrangles with palette color outside
          cbrange to be omitted from the plot rather than being assigned a
          color clipped to cbmin or cbmax.
        o Contour line types can be customized.
          Example: http://gnuplot.info/demo_5.4/custom_contours.html
...
2020-11-20 17:25:02 +00:00

88 lines
2.5 KiB
Makefile

# $NetBSD: options.mk,v 1.18 2020/11/20 17:25:02 prlw1 Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot
PKG_SUPPORTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc lua qt5 wxwidgets x11
PKG_SUGGESTED_OPTIONS= cairo cerf gd x11
# remove after pkgsrc-2020Q3
PKG_OPTIONS_LEGACY_OPTS+= pdf:cairo
.include "../../mk/bsd.options.mk"
PLIST_VARS+= gnuplot-pdf-doc lua qt x11
.if !empty(PKG_OPTIONS:Mcairo)
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-cairo
.endif
.if !empty(PKG_OPTIONS:Mcerf)
.include "../../devel/libcerf/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mgd)
.include "../../graphics/gd/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mlua)
PLIST.lua= yes
CONFIGURE_ARGS+= --with-lua
INSTALLATION_DIRS+= share/texmf-dist/tex/context/gnuplot
INSTALLATION_DIRS+= share/texmf-dist/tex/generic/gnuplot
INSTALLATION_DIRS+= share/texmf-dist/tex/latex/gnuplot
post-install:
${INSTALL_DATA} ${WRKSRC}/share/LaTeX/t-gnuplot-lua-tikz.tex \
${DESTDIR}${PREFIX}/share/texmf-dist/tex/context/gnuplot
${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.tex\
${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot
${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz-common.tex\
${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot
${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.sty\
${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/gnuplot
.include "../../lang/lua/buildlink3.mk"
.include "../../print/kpathsea/texmf.mk"
.else
CONFIGURE_ARGS+= --without-lua
.endif
# to build doc/gnuplot.pdf
.if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc)
PLIST.gnuplot-pdf-doc= yes
BUILD_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
BUILD_DEPENDS+= tex-ucs-[0-9]*:../../print/tex-ucs
post-build:
cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf
post-install:
cd ${WRKSRC}/docs && \
${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION}
.endif
.if !empty(PKG_OPTIONS:Mqt5)
USE_LANGUAGES+= c++11
CONFIGURE_ARGS+= --with-qt=qt5
PLIST.qt= yes
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../x11/qt5-qttools/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-qt=no
.endif
.if !empty(PKG_OPTIONS:Mwxwidgets)
USE_LANGUAGES+= c++
CONFIGURE_ARGS+= --enable-wxwidgets
.include "../../x11/wxGTK30/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-wxwidgets
.endif
.if !empty(PKG_OPTIONS:Mx11)
PLIST.x11= yes
.include "../../x11/libXaw/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-x
.endif