2015-10-28 20:03:17 +01:00
|
|
|
# $NetBSD: options.mk,v 1.11 2015/10/28 19:03:17 wiz Exp $
|
2010-02-19 15:09:58 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot
|
2015-10-28 20:02:22 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= cairo cerf gd lua pdf gnuplot-pdf-doc x11 qt4 wxwidgets
|
|
|
|
PKG_SUGGESTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc x11
|
2010-02-19 15:09:58 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2015-10-25 11:13:53 +01:00
|
|
|
PLIST_VARS+= gnuplot-pdf-doc x11 qt4
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mcairo)
|
|
|
|
.include "../../devel/pango/buildlink3.mk"
|
|
|
|
.include "../../graphics/cairo/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-cairo
|
|
|
|
.endif
|
2010-02-19 15:09:58 +01:00
|
|
|
|
2015-10-28 20:02:22 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mcerf)
|
2015-10-28 20:03:17 +01:00
|
|
|
.include "../../devel/libcerf/buildlink3.mk"
|
2015-10-28 20:02:22 +01:00
|
|
|
.endif
|
|
|
|
|
2010-02-19 15:09:58 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mgd)
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
|
|
|
.endif
|
2011-02-08 14:13:41 +01:00
|
|
|
|
2011-04-29 13:41:07 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mlua)
|
|
|
|
.include "../../lang/lua/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-lua
|
|
|
|
.endif
|
|
|
|
|
2011-03-10 10:44:10 +01:00
|
|
|
# PDF output is also provided by cairo
|
2011-02-08 14:13:41 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mpdf)
|
|
|
|
CONFIGURE_ARGS+= --with-pdf
|
|
|
|
.include "../../print/pdflib-lite/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2015-10-25 11:13:53 +01:00
|
|
|
# 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
|
|
|
|
|
2011-02-08 14:13:41 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
PLIST.x11= yes
|
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
2012-08-10 17:14:53 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mqt4)
|
2013-05-16 16:17:04 +02:00
|
|
|
USE_LANGUAGES+= c++
|
2015-10-25 11:13:53 +01:00
|
|
|
CONFIGURE_ARGS+= --with-qt=qt4
|
2013-05-16 16:17:04 +02:00
|
|
|
PLIST.qt4= yes
|
2012-08-10 17:14:53 +02:00
|
|
|
.include "../../x11/qt4-libs/buildlink3.mk"
|
2015-10-25 11:13:53 +01:00
|
|
|
.include "../../x11/qt4-tools/buildlink3.mk"
|
2012-08-10 17:14:53 +02:00
|
|
|
.else
|
2015-10-25 11:13:53 +01:00
|
|
|
CONFIGURE_ARGS+= --with-qt=no
|
2012-08-10 17:14:53 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mwxwidgets)
|
2013-05-16 16:17:04 +02:00
|
|
|
USE_LANGUAGES+= c++
|
2014-05-08 22:48:55 +02:00
|
|
|
# force wxt terminal into single threaded mode to avoid crashes
|
|
|
|
# c.f. http://sourceforge.net/p/gnuplot/mailman/message/31928881/
|
|
|
|
CONFIGURE_ARGS+= --enable-wxwidgets --with-wx-single-threaded
|
2012-08-10 17:14:53 +02:00
|
|
|
.include "../../x11/wxGTK28/buildlink3.mk"
|
|
|
|
.else
|
2013-05-16 16:17:04 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-wxwidgets
|
2012-08-10 17:14:53 +02:00
|
|
|
.endif
|