| @@ -1,83 +1,116 @@ | | | @@ -1,83 +1,116 @@ |
1 | # $NetBSD: options.mk,v 1.15 2012/09/07 19:16:47 adam Exp $ | | 1 | # $NetBSD: options.mk,v 1.16 2012/09/29 23:34:11 dholland Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz |
4 | PKG_SUPPORTED_OPTIONS= gd ghostscript gtk guile lua ocaml pangocairo rsvg tcl x11 perl | | 4 | PKG_SUPPORTED_OPTIONS= gd ghostscript gtk guile lua ocaml pangocairo rsvg tcl x11 perl |
5 | PKG_SUGGESTED_OPTIONS= gd gtk lua pangocairo perl tcl x11 | | 5 | PKG_SUGGESTED_OPTIONS= gd gtk lua pangocairo perl tcl x11 |
6 | # Explanation of consequence of options, to help those trying to slim down: | | 6 | # Explanation of consequence of options, to help those trying to slim down: |
7 | # guile ocaml lua tcl perl: extension language support | | 7 | # guile ocaml lua tcl perl: extension language support |
8 | # x11: Omits all linking with x11, which means x11 graphics supports as | | 8 | # x11: Omits all linking with x11, which means x11 graphics supports as |
9 | # well as x11 frontend support. | | 9 | # well as x11 frontend support. |
10 | # pangocairo: basic ps/pdf support. | | 10 | # pangocairo: basic ps/pdf support. |
11 | # gtk: basic graphic format support (in addition to gd, which isn't | | 11 | # gtk: basic graphic format support (in addition to gd, which isn't |
12 | # maintained anymore) | | 12 | # maintained anymore) |
13 | # rsvg: Omitting loses svg support. librsvg has large dependencies | | 13 | # rsvg: Omitting loses svg support. librsvg has large dependencies |
14 | # including some GNOME libs. | | 14 | # including some GNOME libs. |
15 | # gd: basic graphic format support, especially gif | | 15 | # gd: basic graphic format support, especially gif |
16 | # ghostscript: provides better ps/pdf-support, plus eps | | 16 | # ghostscript: provides better ps/pdf-support, plus eps |
17 | | | 17 | |
18 | .include "../../mk/bsd.options.mk" | | 18 | .include "../../mk/bsd.options.mk" |
19 | | | 19 | |
20 | PLIST_VARS+= gd ghostscript gtk guile lua ocaml pangocairo perl rsvg tcl x11 | | 20 | PLIST_VARS+= gd ghostscript gtk guile lua ocaml pangocairo perl rsvg tcl x11 |
21 | | | 21 | |
22 | .if !empty(PKG_OPTIONS:Mx11) | | 22 | .if !empty(PKG_OPTIONS:Mx11) |
23 | .include "../../mk/xaw.buildlink3.mk" | | 23 | .include "../../mk/xaw.buildlink3.mk" |
24 | CONFIGURE_ENV+= X11PREFIX=${X11PREFIX} X11BASE=${X11BASE} | | 24 | CONFIGURE_ENV+= X11PREFIX=${X11PREFIX} X11BASE=${X11BASE} |
25 | PLIST.x11= yes | | 25 | PLIST.x11= yes |
26 | .else | | | |
27 | CONFIGURE_ARGS+= --without-x | | | |
28 | .endif | | | |
29 | | | 26 | |
30 | .if !empty(PKG_OPTIONS:Mpangocairo) | | 27 | . if !empty(PKG_OPTIONS:Mpangocairo) |
31 | .include "../../devel/pango/buildlink3.mk" | | 28 | . include "../../devel/pango/buildlink3.mk" |
32 | .include "../../graphics/cairo/buildlink3.mk" | | 29 | . include "../../graphics/cairo/buildlink3.mk" |
33 | PLIST.pangocairo= yes | | 30 | PLIST.pangocairo= yes |
34 | .else | | | |
35 | CONFIGURE_ARGS+= --without-pangocairo | | | |
36 | .endif | | | |
37 | | | 31 | |
38 | .if !empty(PKG_OPTIONS:Mghostscript) | | 32 | . if !empty(PKG_OPTIONS:Mghostscript) |
39 | .include "../../print/ghostscript/buildlink3.mk" | | 33 | . include "../../print/ghostscript/buildlink3.mk" |
40 | PLIST.ghostscript= yes | | 34 | PLIST.ghostscript= yes |
41 | .else | | 35 | . else |
42 | CONFIGURE_ARGS+= --without-ghostscript | | 36 | CONFIGURE_ARGS+= --without-ghostscript |
43 | .endif | | 37 | . endif |
44 | | | 38 | |
45 | .if !empty(PKG_OPTIONS:Mgtk) | | 39 | . if !empty(PKG_OPTIONS:Mgtk) |
46 | .include "../../x11/gtk2/buildlink3.mk" | | 40 | . include "../../x11/gtk2/buildlink3.mk" |
47 | PLIST.gtk= yes | | 41 | PLIST.gtk= yes |
48 | .else | | 42 | . else |
49 | CONFIGURE_ARGS+= --without-gdk-pixbuf | | 43 | CONFIGURE_ARGS+= --without-gdk-pixbuf |
50 | CONFIGURE_ARGS+= --without-gtk | | 44 | CONFIGURE_ARGS+= --without-gtk |
51 | CONFIGURE_ARGS+= --without-gnomeui | | 45 | CONFIGURE_ARGS+= --without-gnomeui |
52 | .endif | | 46 | . endif |
53 | | | 47 | |
54 | .if !empty(PKG_OPTIONS:Mrsvg) | | 48 | . if !empty(PKG_OPTIONS:Mrsvg) |
55 | .include "../../graphics/librsvg/buildlink3.mk" | | 49 | . include "../../graphics/librsvg/buildlink3.mk" |
56 | PLIST.rsvg= yes | | 50 | PLIST.rsvg= yes |
| | | 51 | . else |
| | | 52 | CONFIGURE_ARGS+= --without-rsvg |
| | | 53 | . endif |
| | | 54 | |
| | | 55 | . else |
| | | 56 | # + x11, -pangocairo |
| | | 57 | CONFIGURE_ARGS+= --without-pangocairo |
| | | 58 | |
| | | 59 | . if !empty(PKG_OPTIONS:Mghostscript) |
| | | 60 | PKG_FAIL_REASON+= "option ghostscript needs option pangocairo" |
| | | 61 | . endif |
| | | 62 | CONFIGURE_ARGS+= --without-ghostscript |
| | | 63 | |
| | | 64 | . if !empty(PKG_OPTIONS:Mgtk) |
| | | 65 | PKG_FAIL_REASON+= "option gtk needs option pangocairo" |
| | | 66 | . endif |
| | | 67 | CONFIGURE_ARGS+= --without-gdk-pixbuf |
| | | 68 | CONFIGURE_ARGS+= --without-gtk |
| | | 69 | CONFIGURE_ARGS+= --without-gnomeui |
| | | 70 | |
| | | 71 | . if !empty(PKG_OPTIONS:Mrsvg) |
| | | 72 | PKG_FAIL_REASON+= "option rsvg needs option pangocairo" |
| | | 73 | . endif |
| | | 74 | CONFIGURE_ARGS+= --without-rsvg |
| | | 75 | . endif |
| | | 76 | |
57 | .else | | 77 | .else |
| | | 78 | # - x11 |
| | | 79 | CONFIGURE_ARGS+= --without-x |
| | | 80 | |
| | | 81 | . if !empty(PKG_OPTIONS:Mpangocairo) |
| | | 82 | PKG_FAIL_REASON+= "option pangocairo needs option x11" |
| | | 83 | . endif |
| | | 84 | CONFIGURE_ARGS+= --without-pangocairo |
| | | 85 | |
| | | 86 | . if !empty(PKG_OPTIONS:Mghostscript) |
| | | 87 | PKG_FAIL_REASON+= "option ghostscript needs option pangocairo and x11" |
| | | 88 | . endif |
| | | 89 | CONFIGURE_ARGS+= --without-ghostscript |
| | | 90 | |
| | | 91 | . if !empty(PKG_OPTIONS:Mgtk) |
| | | 92 | PKG_FAIL_REASON+= "option gtk needs option pangocairo and x11" |
| | | 93 | . endif |
| | | 94 | CONFIGURE_ARGS+= --without-gdk-pixbuf |
| | | 95 | CONFIGURE_ARGS+= --without-gtk |
| | | 96 | CONFIGURE_ARGS+= --without-gnomeui |
| | | 97 | |
| | | 98 | . if !empty(PKG_OPTIONS:Mrsvg) |
| | | 99 | PKG_FAIL_REASON+= "option rsvg needs option pangocairo and x11" |
| | | 100 | . endif |
58 | CONFIGURE_ARGS+= --without-rsvg | | 101 | CONFIGURE_ARGS+= --without-rsvg |
59 | .endif | | 102 | .endif |
60 | | | 103 | |
61 | #. if !empty(PKG_OPTIONS:Mghostscript) | | | |
62 | #PKG_FAIL_REASON+= "option ghostscript needs option pangocairo and x11" | | | |
63 | #. endif | | | |
64 | #. if !empty(PKG_OPTIONS:Mgtk) | | | |
65 | #PKG_FAIL_REASON+= "option gtk needs option pangocairo and x11" | | | |
66 | #. endif | | | |
67 | #. if !empty(PKG_OPTIONS:Mrsvg) | | | |
68 | #PKG_FAIL_REASON+= "option rsvg needs option pangocairo and x11" | | | |
69 | #. endif | | | |
70 | | | | |
71 | .if !empty(PKG_OPTIONS:Mgd) | | 104 | .if !empty(PKG_OPTIONS:Mgd) |
72 | .include "../../graphics/gd/buildlink3.mk" | | 105 | .include "../../graphics/gd/buildlink3.mk" |
73 | PLIST.gd= yes | | 106 | PLIST.gd= yes |
74 | .else | | 107 | .else |
75 | CONFIGURE_ARGS+= --without-libgd | | 108 | CONFIGURE_ARGS+= --without-libgd |
76 | CONFIGURE_ARGS+= --without-mylibgd | | 109 | CONFIGURE_ARGS+= --without-mylibgd |
77 | .endif | | 110 | .endif |
78 | | | 111 | |
79 | USING_SWIG= no | | 112 | USING_SWIG= no |
80 | | | 113 | |
81 | .if !empty(PKG_OPTIONS:Mlua) | | 114 | .if !empty(PKG_OPTIONS:Mlua) |
82 | USING_SWIG= yes | | 115 | USING_SWIG= yes |
83 | .include "../../lang/lua/buildlink3.mk" | | 116 | .include "../../lang/lua/buildlink3.mk" |