| @@ -1,74 +1,82 @@ | | | @@ -1,74 +1,82 @@ |
1 | # $NetBSD: options.mk,v 1.6 2022/05/10 20:47:37 markd Exp $ | | 1 | # $NetBSD: options.mk,v 1.7 2022/11/16 16:08:11 hauke Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base |
4 | PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers | | 4 | PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers |
5 | PKG_SUGGESTED_OPTIONS= dnssd kerberos | | 5 | PKG_SUGGESTED_OPTIONS= dnssd kerberos |
6 | | | 6 | |
7 | PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam | | 7 | PKG_OPTIONS_OPTIONAL_GROUPS= mdns |
| | | 8 | PKG_OPTIONS_GROUP.mdns= mdnssd |
| | | 9 | |
| | | 10 | PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam |
8 | | | 11 | |
9 | .if defined(PKG_OPTIONS.cups) | | 12 | .if defined(PKG_OPTIONS.cups) |
10 | PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.cups} | | 13 | PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.cups} |
11 | PKG_OPTIONS_DEPRECATED_WARNINGS+= \ | | 14 | PKG_OPTIONS_DEPRECATED_WARNINGS+= \ |
12 | "Deprecated variable PKG_OPTIONS.cups used, use ${PKG_OPTIONS_VAR} instead." | | 15 | "Deprecated variable PKG_OPTIONS.cups used, use ${PKG_OPTIONS_VAR} instead." |
13 | .endif | | 16 | .endif |
14 | | | 17 | |
15 | .if ${OPSYS} == "Darwin" | | 18 | .if ${OPSYS} == "Darwin" |
16 | PLIST.apple= yes | | 19 | PLIST.apple= yes |
17 | PLIST.ippfind= yes | | 20 | PLIST.ippfind= yes |
18 | .else | | 21 | .else |
19 | # CUPS on Darwin does not support DBus and libusb | | 22 | # CUPS on Darwin does not support DBus and libusb |
20 | PKG_SUPPORTED_OPTIONS+= avahi dbus | | 23 | PKG_SUPPORTED_OPTIONS+= dbus |
21 | PKG_SUGGESTED_OPTIONS+= dbus | | 24 | PKG_OPTIONS_GROUP.mdns+= avahi |
| | | 25 | PKG_SUGGESTED_OPTIONS+= dbus |
22 | # Neither DragonFly nor SunOS can build libusb1 | | 26 | # Neither DragonFly nor SunOS can build libusb1 |
23 | . if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS" | | 27 | . if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS" |
24 | PKG_SUPPORTED_OPTIONS+= libusb | | 28 | PKG_SUPPORTED_OPTIONS+= libusb |
25 | PKG_SUGGESTED_OPTIONS+= libusb | | 29 | PKG_SUGGESTED_OPTIONS+= libusb |
26 | . endif | | 30 | . endif |
27 | .endif | | 31 | .endif |
28 | | | 32 | |
29 | .include "../../mk/bsd.options.mk" | | 33 | .include "../../mk/bsd.options.mk" |
30 | | | 34 | |
31 | MESSAGE_SRC= ${PKGDIR}/MESSAGE | | 35 | MESSAGE_SRC= ${PKGDIR}/MESSAGE |
32 | | | 36 | |
33 | .if !empty(PKG_OPTIONS:Macl) | | 37 | .if !empty(PKG_OPTIONS:Macl) |
34 | CONFIGURE_ARGS+= --enable-acl | | 38 | CONFIGURE_ARGS+= --enable-acl |
35 | .else | | 39 | .else |
36 | CONFIGURE_ARGS+= --disable-acl | | 40 | CONFIGURE_ARGS+= --disable-acl |
37 | .endif | | 41 | .endif |
38 | | | 42 | |
39 | .if !empty(PKG_OPTIONS:Mavahi) | | 43 | .if !empty(PKG_OPTIONS:Mavahi) |
40 | .include "../../net/avahi/buildlink3.mk" | | 44 | .include "../../net/avahi/buildlink3.mk" |
41 | CONFIGURE_ARGS+= --with-dnssd=avahi | | 45 | CONFIGURE_ARGS+= --with-dnssd=avahi |
42 | PLIST.ippfind= yes | | 46 | PLIST.ippfind= yes |
43 | PLIST.dnssd-backend= yes | | 47 | PLIST.dnssd-backend= yes |
44 | .endif | | 48 | .endif |
45 | | | 49 | |
| | | 50 | .if !empty(PKG_OPTIONS:Mdnssd) |
| | | 51 | .include "../../net/mDNSResponder/buildlink3.mk" |
| | | 52 | CONFIGURE_ARGS+= --with-dnssd=mdnsresponder |
| | | 53 | PLIST.dnssd= yes |
| | | 54 | PLIST.dnssd-backend= yes |
| | | 55 | PLIST.ippfind= yes |
| | | 56 | .endif |
| | | 57 | |
| | | 58 | .if empty(PKG_OPTIONS:Mavahi) && empty(PKG_OPTIONS:Mdnssd) |
| | | 59 | CONFIGURE_ARGS+= --with-dnssd=no |
| | | 60 | .endif |
| | | 61 | |
46 | .if !empty(PKG_OPTIONS:Mdbus) | | 62 | .if !empty(PKG_OPTIONS:Mdbus) |
47 | . include "../../sysutils/dbus/buildlink3.mk" | | 63 | . include "../../sysutils/dbus/buildlink3.mk" |
48 | CONFIGURE_ARGS+= --enable-dbus | | 64 | CONFIGURE_ARGS+= --enable-dbus |
49 | PLIST.dbus= yes | | 65 | PLIST.dbus= yes |
50 | .else | | 66 | .else |
51 | CONFIGURE_ARGS+= --disable-dbus | | 67 | CONFIGURE_ARGS+= --disable-dbus |
52 | .endif | | 68 | .endif |
53 | | | 69 | |
54 | .if !empty(PKG_OPTIONS:Mdnssd) | | | |
55 | .include "../../net/mDNSResponder/buildlink3.mk" | | | |
56 | CONFIGURE_ARGS+= --with-dnssd=yes | | | |
57 | PLIST.dnssd= yes | | | |
58 | PLIST.dnssd-backend= yes | | | |
59 | PLIST.ippfind= yes | | | |
60 | .endif | | | |
61 | | | | |
62 | .if !empty(PKG_OPTIONS:Mkerberos) | | 70 | .if !empty(PKG_OPTIONS:Mkerberos) |
63 | .include "../../mk/krb5.buildlink3.mk" | | 71 | .include "../../mk/krb5.buildlink3.mk" |
64 | CONFIGURE_ARGS+= --enable-gssapi | | 72 | CONFIGURE_ARGS+= --enable-gssapi |
65 | .else | | 73 | .else |
66 | CONFIGURE_ARGS+= --disable-gssapi | | 74 | CONFIGURE_ARGS+= --disable-gssapi |
67 | .endif | | 75 | .endif |
68 | | | 76 | |
69 | .if !empty(PKG_OPTIONS:Mlibusb) | | 77 | .if !empty(PKG_OPTIONS:Mlibusb) |
70 | .include "../../devel/libusb1/buildlink3.mk" | | 78 | .include "../../devel/libusb1/buildlink3.mk" |
71 | CONFIGURE_ARGS+= --enable-libusb | | 79 | CONFIGURE_ARGS+= --enable-libusb |
72 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb | | 80 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb |
73 | PLIST.libusb= yes | | 81 | PLIST.libusb= yes |
74 | .else | | 82 | .else |