File:  [cvs.NetBSD.org] / pkgsrc / graphics / gnuplot / options.mk
Revision 1.24: download - view: text, annotated - select for diffs
Mon Dec 18 08:22:51 2023 UTC (16 months, 4 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, HEAD
gnuplot: updated to 5.4.10

Changes in 5.4.10

FIX postscript: build failed in 5.4.9 if neither gd nor cairo libraries present
FIX data-dependent variable point properties in polar plots
FIX configure script modified to work with macOS+Homebrew
CHANGE use 64-bit integers for iteration (allows iteration over dates)

Changes in 5.4.9

NEW qt: support building with Qt6
CHANGE check plugin version at time of import
FIX prevent segfault if GNUPLOT_DRIVER_DIR is invalid
FIX (regression) only y autoscale yerrorbars to points in xrang
FIX possible memory corruption if clipping causes 0-size polygons
FIX wxt: initialization of key box toggle state
FIX post: handle pixmaps

# $NetBSD: options.mk,v 1.24 2023/12/18 08:22:51 adam Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.gnuplot
PKG_SUPPORTED_OPTIONS=		cairo cerf gd gnuplot-pdf-doc lua wxwidgets x11
PKG_OPTIONS_OPTIONAL_GROUPS=	gui
PKG_OPTIONS_GROUP.gui=		qt5 qt6
PKG_SUGGESTED_OPTIONS=		cairo cerf gd x11

.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
TOOL_DEPENDS+=	tex-latex-bin-[0-9]*:../../print/tex-latex-bin
TOOL_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) || !empty(PKG_OPTIONS:Mqt6)
PLIST.qt=		yes
.  if !empty(PKG_OPTIONS:Mqt5)
USE_LANGUAGES+=		c++11
CONFIGURE_ARGS+=	--with-qt=qt5
.    include "../../x11/qt5-qtbase/buildlink3.mk"
.    include "../../x11/qt5-qtsvg/buildlink3.mk"
.    include "../../x11/qt5-qttools/buildlink3.mk"
.  elif !empty(PKG_OPTIONS:Mqt6)
USE_LANGUAGES+=		c++17
CONFIGURE_ARGS+=	--with-qt=qt6
.    include "../../devel/qt6-qt5compat/buildlink3.mk"
.    include "../../devel/qt6-qttools/buildlink3.mk"
.    include "../../graphics/qt6-qtsvg/buildlink3.mk"
.    include "../../x11/qt6-qtbase/buildlink3.mk"
.  endif
.else
CONFIGURE_ARGS+=	--with-qt=no
.endif

.if !empty(PKG_OPTIONS:Mwxwidgets)
USE_LANGUAGES+=		c++
CONFIGURE_ARGS+=	--enable-wxwidgets
.include "../../x11/wxGTK32/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-wxwidgets
.endif

.if !empty(PKG_OPTIONS:Mx11)
PLIST.x11=		yes
.include "../../x11/xorgproto/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-x
.endif

CVSweb <webmaster@jp.NetBSD.org>