| @@ -1,88 +1,86 @@ | | | @@ -1,88 +1,86 @@ |
1 | # $NetBSD: options.mk,v 1.22 2023/06/06 12:41:32 riastradh Exp $ | | 1 | # $NetBSD: options.mk,v 1.23 2023/06/07 10:09:46 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot |
4 | PKG_SUPPORTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc lua qt5 wxwidgets x11 | | 4 | PKG_SUPPORTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc lua qt5 wxwidgets x11 |
5 | PKG_SUGGESTED_OPTIONS= cairo cerf gd x11 | | 5 | PKG_SUGGESTED_OPTIONS= cairo cerf gd x11 |
6 | | | 6 | |
7 | # remove after pkgsrc-2020Q3 | | | |
8 | PKG_OPTIONS_LEGACY_OPTS+= pdf:cairo | | | |
9 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
10 | | | 8 | |
11 | PLIST_VARS+= gnuplot-pdf-doc lua qt x11 | | 9 | PLIST_VARS+= gnuplot-pdf-doc lua qt x11 |
12 | | | 10 | |
13 | .if !empty(PKG_OPTIONS:Mcairo) | | 11 | .if !empty(PKG_OPTIONS:Mcairo) |
14 | .include "../../devel/pango/buildlink3.mk" | | 12 | .include "../../devel/pango/buildlink3.mk" |
15 | .include "../../graphics/cairo/buildlink3.mk" | | 13 | .include "../../graphics/cairo/buildlink3.mk" |
16 | .else | | 14 | .else |
17 | CONFIGURE_ARGS+= --without-cairo | | 15 | CONFIGURE_ARGS+= --without-cairo |
18 | .endif | | 16 | .endif |
19 | | | 17 | |
20 | .if !empty(PKG_OPTIONS:Mcerf) | | 18 | .if !empty(PKG_OPTIONS:Mcerf) |
21 | .include "../../devel/libcerf/buildlink3.mk" | | 19 | .include "../../devel/libcerf/buildlink3.mk" |
22 | .endif | | 20 | .endif |
23 | | | 21 | |
24 | .if !empty(PKG_OPTIONS:Mgd) | | 22 | .if !empty(PKG_OPTIONS:Mgd) |
25 | .include "../../graphics/gd/buildlink3.mk" | | 23 | .include "../../graphics/gd/buildlink3.mk" |
26 | .endif | | 24 | .endif |
27 | | | 25 | |
28 | .if !empty(PKG_OPTIONS:Mlua) | | 26 | .if !empty(PKG_OPTIONS:Mlua) |
29 | PLIST.lua= yes | | 27 | PLIST.lua= yes |
30 | CONFIGURE_ARGS+= --with-lua | | 28 | CONFIGURE_ARGS+= --with-lua |
31 | | | 29 | |
32 | INSTALLATION_DIRS+= share/texmf-dist/tex/context/gnuplot | | 30 | INSTALLATION_DIRS+= share/texmf-dist/tex/context/gnuplot |
33 | INSTALLATION_DIRS+= share/texmf-dist/tex/generic/gnuplot | | 31 | INSTALLATION_DIRS+= share/texmf-dist/tex/generic/gnuplot |
34 | INSTALLATION_DIRS+= share/texmf-dist/tex/latex/gnuplot | | 32 | INSTALLATION_DIRS+= share/texmf-dist/tex/latex/gnuplot |
35 | | | 33 | |
36 | post-install: | | 34 | post-install: |
37 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/t-gnuplot-lua-tikz.tex \ | | 35 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/t-gnuplot-lua-tikz.tex \ |
38 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/context/gnuplot | | 36 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/context/gnuplot |
39 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.tex\ | | 37 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.tex\ |
40 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot | | 38 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot |
41 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz-common.tex\ | | 39 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz-common.tex\ |
42 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot | | 40 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot |
43 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.sty\ | | 41 | ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.sty\ |
44 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/gnuplot | | 42 | ${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/gnuplot |
45 | | | 43 | |
46 | .include "../../lang/lua/buildlink3.mk" | | 44 | .include "../../lang/lua/buildlink3.mk" |
47 | .include "../../print/kpathsea/texmf.mk" | | 45 | .include "../../print/kpathsea/texmf.mk" |
48 | .else | | 46 | .else |
49 | CONFIGURE_ARGS+= --without-lua | | 47 | CONFIGURE_ARGS+= --without-lua |
50 | .endif | | 48 | .endif |
51 | | | 49 | |
52 | # to build doc/gnuplot.pdf | | 50 | # to build doc/gnuplot.pdf |
53 | .if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc) | | 51 | .if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc) |
54 | PLIST.gnuplot-pdf-doc= yes | | 52 | PLIST.gnuplot-pdf-doc= yes |
55 | TOOL_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin | | 53 | TOOL_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin |
56 | TOOL_DEPENDS+= tex-ucs-[0-9]*:../../print/tex-ucs | | 54 | TOOL_DEPENDS+= tex-ucs-[0-9]*:../../print/tex-ucs |
57 | post-build: | | 55 | post-build: |
58 | cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf | | 56 | cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf |
59 | post-install: | | 57 | post-install: |
60 | cd ${WRKSRC}/docs && \ | | 58 | cd ${WRKSRC}/docs && \ |
61 | ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION} | | 59 | ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION} |
62 | .endif | | 60 | .endif |
63 | | | 61 | |
64 | .if !empty(PKG_OPTIONS:Mqt5) | | 62 | .if !empty(PKG_OPTIONS:Mqt5) |
65 | USE_LANGUAGES+= c++11 | | 63 | USE_LANGUAGES+= c++11 |
66 | CONFIGURE_ARGS+= --with-qt=qt5 | | 64 | CONFIGURE_ARGS+= --with-qt=qt5 |
67 | PLIST.qt= yes | | 65 | PLIST.qt= yes |
68 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 66 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
69 | .include "../../x11/qt5-qtsvg/buildlink3.mk" | | 67 | .include "../../x11/qt5-qtsvg/buildlink3.mk" |
70 | .include "../../x11/qt5-qttools/buildlink3.mk" | | 68 | .include "../../x11/qt5-qttools/buildlink3.mk" |
71 | .else | | 69 | .else |
72 | CONFIGURE_ARGS+= --with-qt=no | | 70 | CONFIGURE_ARGS+= --with-qt=no |
73 | .endif | | 71 | .endif |
74 | | | 72 | |
75 | .if !empty(PKG_OPTIONS:Mwxwidgets) | | 73 | .if !empty(PKG_OPTIONS:Mwxwidgets) |
76 | USE_LANGUAGES+= c++ | | 74 | USE_LANGUAGES+= c++ |
77 | CONFIGURE_ARGS+= --enable-wxwidgets | | 75 | CONFIGURE_ARGS+= --enable-wxwidgets |
78 | .include "../../x11/wxGTK31/buildlink3.mk" | | 76 | .include "../../x11/wxGTK32/buildlink3.mk" |
79 | .else | | 77 | .else |
80 | CONFIGURE_ARGS+= --disable-wxwidgets | | 78 | CONFIGURE_ARGS+= --disable-wxwidgets |
81 | .endif | | 79 | .endif |
82 | | | 80 | |
83 | .if !empty(PKG_OPTIONS:Mx11) | | 81 | .if !empty(PKG_OPTIONS:Mx11) |
84 | PLIST.x11= yes | | 82 | PLIST.x11= yes |
85 | .include "../../x11/xorgproto/buildlink3.mk" | | 83 | .include "../../x11/xorgproto/buildlink3.mk" |
86 | .else | | 84 | .else |
87 | CONFIGURE_ARGS+= --without-x | | 85 | CONFIGURE_ARGS+= --without-x |
88 | .endif | | 86 | .endif |