Annotation of pkgsrc/graphics/gnuplot/options.mk, revision 1.16
1.16 ! rin 1: # $NetBSD: options.mk,v 1.15 2019/10/28 08:33:24 kamil Exp $
1.1 asau 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot
1.15 kamil 4: PKG_SUPPORTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc lua pdf qt5 wxwidgets x11
1.16 ! rin 5: PKG_SUGGESTED_OPTIONS= cairo cerf gd x11
1.1 asau 6:
7: .include "../../mk/bsd.options.mk"
8:
1.12 adam 9: PLIST_VARS+= gnuplot-pdf-doc qt x11
1.9 wiz 10:
11: .if !empty(PKG_OPTIONS:Mcairo)
12: .include "../../devel/pango/buildlink3.mk"
13: .include "../../graphics/cairo/buildlink3.mk"
14: .else
15: CONFIGURE_ARGS+= --without-cairo
16: .endif
1.2 adam 17:
1.10 wiz 18: .if !empty(PKG_OPTIONS:Mcerf)
1.11 wiz 19: .include "../../devel/libcerf/buildlink3.mk"
1.10 wiz 20: .endif
21:
1.2 adam 22: .if !empty(PKG_OPTIONS:Mgd)
23: .include "../../graphics/gd/buildlink3.mk"
24: .endif
25:
1.4 obache 26: .if !empty(PKG_OPTIONS:Mlua)
27: .include "../../lang/lua/buildlink3.mk"
28: .else
29: CONFIGURE_ARGS+= --without-lua
30: .endif
31:
1.3 drochner 32: # PDF output is also provided by cairo
1.1 asau 33: .if !empty(PKG_OPTIONS:Mpdf)
1.2 adam 34: CONFIGURE_ARGS+= --with-pdf
35: .include "../../print/pdflib-lite/buildlink3.mk"
1.1 asau 36: .endif
37:
1.9 wiz 38: # to build doc/gnuplot.pdf
39: .if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc)
40: PLIST.gnuplot-pdf-doc= yes
41: BUILD_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
42: BUILD_DEPENDS+= tex-ucs-[0-9]*:../../print/tex-ucs
43: post-build:
1.14 adam 44: cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf
1.9 wiz 45: post-install:
1.14 adam 46: cd ${WRKSRC}/docs && \
47: ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION}
1.9 wiz 48: .endif
49:
1.2 adam 50: .if !empty(PKG_OPTIONS:Mx11)
51: PLIST.x11= yes
52: .include "../../x11/libXaw/buildlink3.mk"
53: .else
54: CONFIGURE_ARGS+= --without-x
1.1 asau 55: .endif
1.5 drochner 56:
1.15 kamil 57: .if !empty(PKG_OPTIONS:Mqt5)
1.12 adam 58: USE_LANGUAGES+= c++11
59: CONFIGURE_ARGS+= --with-qt=qt5
60: PLIST.qt= yes
61: .include "../../x11/qt5-qtbase/buildlink3.mk"
62: .include "../../x11/qt5-qtsvg/buildlink3.mk"
1.13 adam 63: .include "../../x11/qt5-qttools/buildlink3.mk"
1.5 drochner 64: .else
1.9 wiz 65: CONFIGURE_ARGS+= --with-qt=no
1.5 drochner 66: .endif
67:
68: .if !empty(PKG_OPTIONS:Mwxwidgets)
1.7 adam 69: USE_LANGUAGES+= c++
1.12 adam 70: CONFIGURE_ARGS+= --enable-wxwidgets
71: .include "../../x11/wxGTK30/buildlink3.mk"
1.5 drochner 72: .else
1.7 adam 73: CONFIGURE_ARGS+= --disable-wxwidgets
1.5 drochner 74: .endif
CVSweb <webmaster@jp.NetBSD.org>