| @@ -1,21 +1,41 @@ | | | @@ -1,21 +1,41 @@ |
1 | # $NetBSD: options.mk,v 1.13 2016/12/30 23:09:41 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.14 2016/12/30 23:18:53 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs |
4 | PKG_SUPPORTED_OPTIONS+= ldap xface canna debug | | 4 | PKG_SUPPORTED_OPTIONS+= ldap xface canna debug |
5 | #PKG_SUPPORTED_OPTIONS+= esound | | 5 | #PKG_SUPPORTED_OPTIONS+= esound |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
| | | 9 | ### |
| | | 10 | ### Any of the "toolkit" options or "xft" implies "x11". |
| | | 11 | ### |
| | | 12 | .if !empty(PKG_OPTIONS:Mgtk) || !empty(PKG_OPTIONS:Mlucid) || \ |
| | | 13 | !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mxft) |
| | | 14 | . if empty(PKG_OPTIONS:Mx11) |
| | | 15 | PKG_OPTIONS+= x11 |
| | | 16 | . endif |
| | | 17 | .endif |
| | | 18 | |
| | | 19 | ### |
| | | 20 | ### Default to using the Lucid X11 toolkit if none is specified. |
| | | 21 | ### |
| | | 22 | .if !empty(PKG_OPTIONS:Mx11) |
| | | 23 | . if empty(PKG_OPTIONS:Mgtk) && empty(PKG_OPTIONS:Mlucid) && \ |
| | | 24 | empty(PKG_OPTIONS:Mmotif) |
| | | 25 | PKG_OPTIONS+= lucid |
| | | 26 | . endif |
| | | 27 | .endif |
| | | 28 | |
9 | PLIST_VARS+= ldap | | 29 | PLIST_VARS+= ldap |
10 | .if !empty(PKG_OPTIONS:Mldap) | | 30 | .if !empty(PKG_OPTIONS:Mldap) |
11 | PLIST.ldap= yes | | 31 | PLIST.ldap= yes |
12 | CONFIGURE_ARGS+= --with-ldap | | 32 | CONFIGURE_ARGS+= --with-ldap |
13 | . include "../../databases/openldap-client/buildlink3.mk" | | 33 | . include "../../databases/openldap-client/buildlink3.mk" |
14 | .else | | 34 | .else |
15 | CONFIGURE_ARGS+= --without-ldap | | 35 | CONFIGURE_ARGS+= --without-ldap |
16 | .endif | | 36 | .endif |
17 | | | 37 | |
18 | .if !empty(PKG_OPTIONS:Mxface) | | 38 | .if !empty(PKG_OPTIONS:Mxface) |
19 | CONFIGURE_ARGS+= --with-xface | | 39 | CONFIGURE_ARGS+= --with-xface |
20 | . include "../../mail/faces/buildlink3.mk" | | 40 | . include "../../mail/faces/buildlink3.mk" |
21 | .else | | 41 | .else |
| @@ -28,13 +48,73 @@ CONFIGURE_ARGS+= --with-canna | | | @@ -28,13 +48,73 @@ CONFIGURE_ARGS+= --with-canna |
28 | .else | | 48 | .else |
29 | CONFIGURE_ARGS+= --without-canna | | 49 | CONFIGURE_ARGS+= --without-canna |
30 | .endif | | 50 | .endif |
31 | | | 51 | |
32 | .if !empty(PKG_OPTIONS:Mesound) | | 52 | .if !empty(PKG_OPTIONS:Mesound) |
33 | . include "../../audio/esound/buildlink3.mk" | | 53 | . include "../../audio/esound/buildlink3.mk" |
34 | .else | | 54 | .else |
35 | CONFIGURE_ARGS+= --with-sound=none | | 55 | CONFIGURE_ARGS+= --with-sound=none |
36 | .endif | | 56 | .endif |
37 | | | 57 | |
38 | .if !empty(PKG_OPTIONS:Mdebug) | | 58 | .if !empty(PKG_OPTIONS:Mdebug) |
39 | CONFIGURE_ARGS+= --enable-debug=yes --with-debug | | 59 | CONFIGURE_ARGS+= --enable-debug=yes --with-debug |
40 | .endif | | 60 | .endif |
| | | 61 | |
| | | 62 | ### |
| | | 63 | ### Support drawing pretty X11 widgets. |
| | | 64 | ### |
| | | 65 | .if !empty(PKG_OPTIONS:Mx11) |
| | | 66 | . include "../../mk/jpeg.buildlink3.mk" |
| | | 67 | . include "../../graphics/png/buildlink3.mk" |
| | | 68 | . include "../../graphics/tiff/buildlink3.mk" |
| | | 69 | . include "../../x11/xbitmaps/buildlink3.mk" |
| | | 70 | CONFIGURE_ARGS+= --with-x |
| | | 71 | . if ${X11_TYPE} != "modular" |
| | | 72 | CONFIGURE_ARGS+= --with-site-prefixes=${PREFIX}:${X11BASE} |
| | | 73 | CONFIGURE_ARGS+= --with-site-runtime-libraries=${PREFIX}/lib:${X11BASE}/lib |
| | | 74 | . else |
| | | 75 | CONFIGURE_ARGS+= --with-site-prefixes=${PREFIX} |
| | | 76 | CONFIGURE_ARGS+= --with-site-runtime-libraries=${PREFIX}/lib |
| | | 77 | . endif |
| | | 78 | .else |
| | | 79 | CONFIGURE_ARGS+= --without-x |
| | | 80 | CONFIGURE_ARGS+= --without-jpeg |
| | | 81 | CONFIGURE_ARGS+= --without-png |
| | | 82 | CONFIGURE_ARGS+= --without-tiff |
| | | 83 | CONFIGURE_ARGS+= --without-xpm |
| | | 84 | CONFIGURE_ARGS+= --with-site-prefixes=${PREFIX} |
| | | 85 | CONFIGURE_ARGS+= --with-site-runtime-libraries=${PREFIX}/lib |
| | | 86 | .endif |
| | | 87 | |
| | | 88 | ### |
| | | 89 | ### Support using Xft for rendering TrueType fonts. |
| | | 90 | ### |
| | | 91 | .if !empty(PKG_OPTIONS:Mxft) |
| | | 92 | . include "../../fonts/fontconfig/buildlink3.mk" |
| | | 93 | . include "../../graphics/freetype2/buildlink3.mk" |
| | | 94 | . include "../../x11/libXft/buildlink3.mk" |
| | | 95 | . include "../../x11/libXrender/buildlink3.mk" |
| | | 96 | CONFIGURE_ARGS+= --with-xft=emacs,tabs,menubars,gauges |
| | | 97 | .endif |
| | | 98 | |
| | | 99 | ### |
| | | 100 | ### Support using GTK X11 widgets. |
| | | 101 | ### |
| | | 102 | .if !empty(PKG_OPTIONS:Mgtk) |
| | | 103 | . include "../../x11/gtk/buildlink3.mk" |
| | | 104 | CONFIGURE_ARGS+= --with-gtk |
| | | 105 | .endif |
| | | 106 | |
| | | 107 | ### |
| | | 108 | ### Support using Motif X11 widgets. |
| | | 109 | ### |
| | | 110 | .if !empty(PKG_OPTIONS:Mmotif) |
| | | 111 | . include "../../mk/motif.buildlink3.mk" |
| | | 112 | .endif |
| | | 113 | |
| | | 114 | ### |
| | | 115 | ### Support using Lucid X11 widgets. |
| | | 116 | ### |
| | | 117 | .if !empty(PKG_OPTIONS:Mlucid) |
| | | 118 | . include "../../mk/xaw.buildlink3.mk" |
| | | 119 | CONFIGURE_ARGS+= --with-widgets=lucid |
| | | 120 | .endif |