| @@ -1,21 +1,19 @@ | | | @@ -1,21 +1,19 @@ |
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" |
| @@ -65,24 +63,24 @@ post-install: | | | @@ -65,24 +63,24 @@ post-install: |
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 |