Wed Nov 16 16:08:11 2022 UTC ()
When building without any mdns support on NetBSD (at least), configure
will still find the base mdnssd, and build and install ippfind
support. This will lead to a PLIST error -- as far as pkgsrc is
concerned, we did not enable it.

Tell configure explicitly to not add mdns support when we don't want any.

While here, group mdnssd and avahi as optional and mutually exclusive.


(hauke)
diff -r1.51 -r1.52 pkgsrc/print/cups-base/Makefile
diff -r1.6 -r1.7 pkgsrc/print/cups-base/options.mk

cvs diff -r1.51 -r1.52 pkgsrc/print/cups-base/Makefile (switch to unified diff)

--- pkgsrc/print/cups-base/Makefile 2022/10/26 10:31:06 1.51
+++ pkgsrc/print/cups-base/Makefile 2022/11/16 16:08:11 1.52
@@ -1,163 +1,163 @@ @@ -1,163 +1,163 @@
1# $NetBSD: Makefile,v 1.51 2022/10/26 10:31:06 wiz Exp $ 1# $NetBSD: Makefile,v 1.52 2022/11/16 16:08:11 hauke Exp $
2 2
3.include "../../print/cups/Makefile.common" 3.include "../../print/cups/Makefile.common"
4 4
5PKGNAME= cups-base-${CUPS_VERS} 5PKGNAME= cups-base-${CUPS_VERS}
6PKGREVISION= 3 6PKGREVISION= 4
7MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenPrinting/} 7MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenPrinting/}
8 8
9MAINTAINER= sbd@NetBSD.org 9MAINTAINER= sbd@NetBSD.org
10COMMENT= Common UNIX Printing System 10COMMENT= Common UNIX Printing System
11 11
12GITHUB_PROJECT= cups 12GITHUB_PROJECT= cups
13GITHUB_RELEASE= v${PKGVERSION_NOREV} 13GITHUB_RELEASE= v${PKGVERSION_NOREV}
14 14
15CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]* 15CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
16 16
17WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//} 17WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
18UNLIMIT_RESOURCES= datasize memorysize 18UNLIMIT_RESOURCES= datasize memorysize
19USE_LANGUAGES= c c++ # pdftops is a C++ application 19USE_LANGUAGES= c c++ # pdftops is a C++ application
20USE_LIBTOOL= yes 20USE_LIBTOOL= yes
21USE_PKGLOCALEDIR= yes 21USE_PKGLOCALEDIR= yes
22USE_TOOLS+= aclocal autoconf automake gmake pkg-config 22USE_TOOLS+= aclocal autoconf automake gmake pkg-config
23GNU_CONFIGURE= yes 23GNU_CONFIGURE= yes
24CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale 24CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
25CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} 25CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
26CONFIGURE_ARGS+= --localstatedir=${VARBASE} 26CONFIGURE_ARGS+= --localstatedir=${VARBASE}
27CONFIGURE_ARGS+= --with-cachedir=${CUPS_CACHE:Q} 27CONFIGURE_ARGS+= --with-cachedir=${CUPS_CACHE:Q}
28CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups 28CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
29CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups 29CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
30CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER} 30CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER}
31CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP} 31CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP}
32CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q} 32CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q}
33CONFIGURE_ARGS+= --with-exe-file-perm=0755 33CONFIGURE_ARGS+= --with-exe-file-perm=0755
34CONFIGURE_ARGS+= --enable-libpaper 34CONFIGURE_ARGS+= --enable-libpaper
35CONFIGURE_ARGS+= --without-bundledir 35CONFIGURE_ARGS+= --without-bundledir
36CONFIGURE_ARGS+= --without-icondir 36CONFIGURE_ARGS+= --without-icondir
37CONFIGURE_ARGS+= --without-menudir 37CONFIGURE_ARGS+= --without-menudir
38CONFIGURE_ARGS+= --with-tls=gnutls 38CONFIGURE_ARGS+= --with-tls=gnutls
39 39
40CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q} 40CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
41 41
42.include "../../mk/bsd.prefs.mk" 42.include "../../mk/bsd.prefs.mk"
43.include "options.mk" 43.include "options.mk"
44 44
45# Explicitly disable epoll on illumos, it is provided for Linux compat only. 45# Explicitly disable epoll on illumos, it is provided for Linux compat only.
46CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_create=no 46CONFIGURE_ENV.SunOS+= ac_cv_func_epoll_create=no
47 47
48CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS 48CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
49 49
50LIBS+= ${BUILDLINK_LDADD.iconv} 50LIBS+= ${BUILDLINK_LDADD.iconv}
51 51
52# Avoid the following error when compiling with clang. 52# Avoid the following error when compiling with clang.
53# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC' 53# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
54# can not be used when making a shared object; recompile with -fPIC 54# can not be used when making a shared object; recompile with -fPIC
55BUILDLINK_TRANSFORM.FreeBSD+= rm:-Wl,-pie 55BUILDLINK_TRANSFORM.FreeBSD+= rm:-Wl,-pie
56 56
57FILES_SUBST+= CUPS_USER=${CUPS_USER} 57FILES_SUBST+= CUPS_USER=${CUPS_USER}
58FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP} 58FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
59FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q} 59FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q}
60 60
61PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS 61PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS
62PKG_USERS_VARS= CUPS_USER 62PKG_USERS_VARS= CUPS_USER
63 63
64BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE 64BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE
65 65
66DOCDIR= ${PREFIX}/share/doc/cups 66DOCDIR= ${PREFIX}/share/doc/cups
67EGDIR= ${PREFIX}/share/examples/cups 67EGDIR= ${PREFIX}/share/examples/cups
68MIMEDIR= ${PREFIX}/share/cups/mime 68MIMEDIR= ${PREFIX}/share/cups/mime
69PKG_SYSCONFSUBDIR= cups 69PKG_SYSCONFSUBDIR= cups
70CUPS_CONFDIR= ${PKG_SYSCONFDIR} 70CUPS_CONFDIR= ${PKG_SYSCONFDIR}
71CUPS_LOGDIR= ${VARBASE}/log/cups 71CUPS_LOGDIR= ${VARBASE}/log/cups
72CUPS_REQUESTS= ${VARBASE}/spool/cups 72CUPS_REQUESTS= ${VARBASE}/spool/cups
73CUPS_CACHE= ${VARBASE}/cache/cups 73CUPS_CACHE= ${VARBASE}/cache/cups
74CUPS_STATEDIR= ${VARBASE}/run/cups 74CUPS_STATEDIR= ${VARBASE}/run/cups
75 75
76PKG_GROUPS= ${CUPS_GROUP} 76PKG_GROUPS= ${CUPS_GROUP}
77PKG_USERS= ${CUPS_USER}:${CUPS_GROUP} 77PKG_USERS= ${CUPS_USER}:${CUPS_GROUP}
78PKG_GECOS.${CUPS_USER}= Common UNIX Printing System user 78PKG_GECOS.${CUPS_USER}= Common UNIX Printing System user
79PKG_SHELL.${CUPS_USER}= ${SH} 79PKG_SHELL.${CUPS_USER}= ${SH}
80 80
81CONF_FILES+= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf 81CONF_FILES+= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
82CONF_FILES+= ${EGDIR}/cups-files.conf ${CUPS_CONFDIR}/cups-files.conf 82CONF_FILES+= ${EGDIR}/cups-files.conf ${CUPS_CONFDIR}/cups-files.conf
83CONF_FILES+= ${EGDIR}/snmp.conf ${CUPS_CONFDIR}/snmp.conf 83CONF_FILES+= ${EGDIR}/snmp.conf ${CUPS_CONFDIR}/snmp.conf
84RCD_SCRIPTS= cupsd 84RCD_SCRIPTS= cupsd
85 85
86OWN_DIRS= ${CUPS_CONFDIR} 86OWN_DIRS= ${CUPS_CONFDIR}
87OWN_DIRS+= ${CUPS_CONFDIR}/interfaces 87OWN_DIRS+= ${CUPS_CONFDIR}/interfaces
88OWN_DIRS+= ${CUPS_CONFDIR}/ppd 88OWN_DIRS+= ${CUPS_CONFDIR}/ppd
89OWN_DIRS+= ${PREFIX}/libexec/cups/driver 89OWN_DIRS+= ${PREFIX}/libexec/cups/driver
90OWN_DIRS+= ${CUPS_LOGDIR} 90OWN_DIRS+= ${CUPS_LOGDIR}
91OWN_DIRS+= ${CUPS_STATEDIR} 91OWN_DIRS+= ${CUPS_STATEDIR}
92OWN_DIRS_PERMS= ${CUPS_STATEDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711 92OWN_DIRS_PERMS= ${CUPS_STATEDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
93OWN_DIRS_PERMS+= ${CUPS_CONFDIR}/ssl ${REAL_ROOT_USER} ${CUPS_GROUP} 0700 93OWN_DIRS_PERMS+= ${CUPS_CONFDIR}/ssl ${REAL_ROOT_USER} ${CUPS_GROUP} 0700
94OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${REAL_ROOT_USER} ${CUPS_GROUP} 0710 94OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${REAL_ROOT_USER} ${CUPS_GROUP} 0710
95OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${REAL_ROOT_USER} ${CUPS_GROUP} 1770 95OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${REAL_ROOT_USER} ${CUPS_GROUP} 1770
96OWN_DIRS_PERMS+= ${CUPS_CACHE} ${REAL_ROOT_USER} ${CUPS_GROUP} 0775 96OWN_DIRS_PERMS+= ${CUPS_CACHE} ${REAL_ROOT_USER} ${CUPS_GROUP} 0775
97OWN_DIRS_PERMS+= ${CUPS_CACHE}/rss ${REAL_ROOT_USER} ${CUPS_GROUP} 0775 97OWN_DIRS_PERMS+= ${CUPS_CACHE}/rss ${REAL_ROOT_USER} ${CUPS_GROUP} 0775
98 98
99SUBST_CLASSES+= paths 99SUBST_CLASSES+= paths
100SUBST_FILES.paths= ${WRKDIR}/cups.pam 100SUBST_FILES.paths= ${WRKDIR}/cups.pam
101SUBST_VARS.paths= LOCALBASE 101SUBST_VARS.paths= LOCALBASE
102SUBST_STAGE.paths= pre-configure 102SUBST_STAGE.paths= pre-configure
103 103
104SUBST_CLASSES+= rpathfix 104SUBST_CLASSES+= rpathfix
105SUBST_FILES.rpathfix= cups-config.in 105SUBST_FILES.rpathfix= cups-config.in
106SUBST_MESSAGE.rpathfix= Adding rpath to cups-config. 106SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
107SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g' 107SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g'
108SUBST_STAGE.rpathfix= pre-configure 108SUBST_STAGE.rpathfix= pre-configure
109 109
110.if ${OPSYS} == NetBSD && ${MACHINE_ARCH} == powerpc 110.if ${OPSYS} == NetBSD && ${MACHINE_ARCH} == powerpc
111SUBST_CLASSES+= piefix 111SUBST_CLASSES+= piefix
112SUBST_FILES.piefix= Makedefs.in 112SUBST_FILES.piefix= Makedefs.in
113SUBST_MESSAGE.piefix= Removing PIE flags 113SUBST_MESSAGE.piefix= Removing PIE flags
114SUBST_SED.piefix= -e 's|@PIEFLAGS@||g' 114SUBST_SED.piefix= -e 's|@PIEFLAGS@||g'
115SUBST_STAGE.piefix= pre-configure 115SUBST_STAGE.piefix= pre-configure
116.endif 116.endif
117 117
118INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} 118INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR}
119 119
120pre-configure: 120pre-configure:
121.if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP}) 121.if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP})
122 ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP" 122 ${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP"
123 exit 1 123 exit 1
124.endif 124.endif
125 cd ${WRKSRC} && aclocal && autoconf 125 cd ${WRKSRC} && aclocal && autoconf
126 126
127post-extract: 127post-extract:
128 ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam 128 ${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
129 129
130post-install: 130post-install:
131 # Delete files installed by libcups 131 # Delete files installed by libcups
132 ${RM} ${DESTDIR}${PREFIX}/bin/cups-config 132 ${RM} ${DESTDIR}${PREFIX}/bin/cups-config
133 ${RM} -rf ${DESTDIR}${PREFIX}/lib 133 ${RM} -rf ${DESTDIR}${PREFIX}/lib
134 ${RM} -rf ${DESTDIR}${PREFIX}/include/cups 134 ${RM} -rf ${DESTDIR}${PREFIX}/include/cups
135 ${RM} -rf ${DESTDIR}${PREFIX}/share/locale 135 ${RM} -rf ${DESTDIR}${PREFIX}/share/locale
136 set -e; for file in LICENSE README.md; do \ 136 set -e; for file in LICENSE README.md; do \
137 ${INSTALL_DATA} ${WRKSRC}/$${file} \ 137 ${INSTALL_DATA} ${WRKSRC}/$${file} \
138 ${DESTDIR}${DOCDIR}/$${file}; \ 138 ${DESTDIR}${DOCDIR}/$${file}; \
139 done 139 done
140 ${RUN} for file in cupsd.conf cups-files.conf snmp.conf ; do \ 140 ${RUN} for file in cupsd.conf cups-files.conf snmp.conf ; do \
141 ${INSTALL_DATA} ${WRKSRC}/conf/$${file} \ 141 ${INSTALL_DATA} ${WRKSRC}/conf/$${file} \
142 ${DESTDIR}${EGDIR}/$${file}; \ 142 ${DESTDIR}${EGDIR}/$${file}; \
143 done 143 done
144 ${CHMOD} g-w ${DESTDIR}${PREFIX}/libexec/cups/cgi-bin 144 ${CHMOD} g-w ${DESTDIR}${PREFIX}/libexec/cups/cgi-bin
145.if !empty(PKG_OPTIONS:Mpam) 145.if !empty(PKG_OPTIONS:Mpam)
146 ${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR} 146 ${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
147.endif 147.endif
148.if !empty(PKG_OPTIONS:Mdnssd) 148.if !empty(PKG_OPTIONS:Mdnssd)
149 ${LN} -sf ${DESTDIR}${PREFIX}/libexec/cups/backend/dnssd ${DESTDIR}${PREFIX}/libexec/cups/backend/mdns 149 ${LN} -sf ${DESTDIR}${PREFIX}/libexec/cups/backend/dnssd ${DESTDIR}${PREFIX}/libexec/cups/backend/mdns
150.endif 150.endif
151 151
152.include "../../converters/libiconv/buildlink3.mk" 152.include "../../converters/libiconv/buildlink3.mk"
153.include "../../devel/zlib/buildlink3.mk" 153.include "../../devel/zlib/buildlink3.mk"
154.include "../../graphics/png/buildlink3.mk" 154.include "../../graphics/png/buildlink3.mk"
155.include "../../graphics/tiff/buildlink3.mk" 155.include "../../graphics/tiff/buildlink3.mk"
156.include "../../print/libcups/buildlink3.mk" 156.include "../../print/libcups/buildlink3.mk"
157.include "../../print/libpaper/buildlink3.mk" 157.include "../../print/libpaper/buildlink3.mk"
158.include "../../security/gnutls/buildlink3.mk" 158.include "../../security/gnutls/buildlink3.mk"
159.include "../../textproc/libunistring/buildlink3.mk" 159.include "../../textproc/libunistring/buildlink3.mk"
160.include "../../mk/curses.buildlink3.mk" 160.include "../../mk/curses.buildlink3.mk"
161.include "../../mk/jpeg.buildlink3.mk" 161.include "../../mk/jpeg.buildlink3.mk"
162.include "../../mk/pthread.buildlink3.mk" 162.include "../../mk/pthread.buildlink3.mk"
163.include "../../mk/bsd.pkg.mk" 163.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/print/cups-base/options.mk (switch to unified diff)

--- pkgsrc/print/cups-base/options.mk 2022/05/10 20:47:37 1.6
+++ pkgsrc/print/cups-base/options.mk 2022/11/16 16:08:11 1.7
@@ -1,93 +1,101 @@ @@ -1,93 +1,101 @@
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
3PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base 3PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base
4PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers 4PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
5PKG_SUGGESTED_OPTIONS= dnssd kerberos 5PKG_SUGGESTED_OPTIONS= dnssd kerberos
6 6
7PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam 7PKG_OPTIONS_OPTIONAL_GROUPS= mdns
 8PKG_OPTIONS_GROUP.mdns= mdnssd
 9
 10PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam
8 11
9.if defined(PKG_OPTIONS.cups) 12.if defined(PKG_OPTIONS.cups)
10PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.cups} 13PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.cups}
11PKG_OPTIONS_DEPRECATED_WARNINGS+= \ 14PKG_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"
16PLIST.apple= yes 19PLIST.apple= yes
17PLIST.ippfind= yes 20PLIST.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
20PKG_SUPPORTED_OPTIONS+= avahi dbus 23PKG_SUPPORTED_OPTIONS+= dbus
21PKG_SUGGESTED_OPTIONS+= dbus 24PKG_OPTIONS_GROUP.mdns+= avahi
 25PKG_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"
24PKG_SUPPORTED_OPTIONS+= libusb 28PKG_SUPPORTED_OPTIONS+= libusb
25PKG_SUGGESTED_OPTIONS+= libusb 29PKG_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
31MESSAGE_SRC= ${PKGDIR}/MESSAGE 35MESSAGE_SRC= ${PKGDIR}/MESSAGE
32 36
33.if !empty(PKG_OPTIONS:Macl) 37.if !empty(PKG_OPTIONS:Macl)
34CONFIGURE_ARGS+= --enable-acl 38CONFIGURE_ARGS+= --enable-acl
35.else 39.else
36CONFIGURE_ARGS+= --disable-acl 40CONFIGURE_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"
41CONFIGURE_ARGS+= --with-dnssd=avahi 45CONFIGURE_ARGS+= --with-dnssd=avahi
42PLIST.ippfind= yes 46PLIST.ippfind= yes
43PLIST.dnssd-backend= yes 47PLIST.dnssd-backend= yes
44.endif 48.endif
45 49
 50.if !empty(PKG_OPTIONS:Mdnssd)
 51.include "../../net/mDNSResponder/buildlink3.mk"
 52CONFIGURE_ARGS+= --with-dnssd=mdnsresponder
 53PLIST.dnssd= yes
 54PLIST.dnssd-backend= yes
 55PLIST.ippfind= yes
 56.endif
 57
 58.if empty(PKG_OPTIONS:Mavahi) && empty(PKG_OPTIONS:Mdnssd)
 59CONFIGURE_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"
48CONFIGURE_ARGS+= --enable-dbus 64CONFIGURE_ARGS+= --enable-dbus
49PLIST.dbus= yes 65PLIST.dbus= yes
50.else 66.else
51CONFIGURE_ARGS+= --disable-dbus 67CONFIGURE_ARGS+= --disable-dbus
52.endif 68.endif
53 69
54.if !empty(PKG_OPTIONS:Mdnssd) 
55.include "../../net/mDNSResponder/buildlink3.mk" 
56CONFIGURE_ARGS+= --with-dnssd=yes 
57PLIST.dnssd= yes 
58PLIST.dnssd-backend= yes 
59PLIST.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"
64CONFIGURE_ARGS+= --enable-gssapi 72CONFIGURE_ARGS+= --enable-gssapi
65.else 73.else
66CONFIGURE_ARGS+= --disable-gssapi 74CONFIGURE_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"
71CONFIGURE_ARGS+= --enable-libusb 79CONFIGURE_ARGS+= --enable-libusb
72MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb 80MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb
73PLIST.libusb= yes 81PLIST.libusb= yes
74.else 82.else
75CONFIGURE_ARGS+= --disable-libusb 83CONFIGURE_ARGS+= --disable-libusb
76.endif 84.endif
77 85
78.if !empty(PKG_OPTIONS:Mpam) 86.if !empty(PKG_OPTIONS:Mpam)
79. include "../../mk/pam.buildlink3.mk" 87. include "../../mk/pam.buildlink3.mk"
80CONFIGURE_ARGS+= --enable-pam 88CONFIGURE_ARGS+= --enable-pam
81MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam 89MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
82PLIST.pam= yes 90PLIST.pam= yes
83.else 91.else
84CONFIGURE_ARGS+= --disable-pam 92CONFIGURE_ARGS+= --disable-pam
85MESSAGE_SRC+= ${.CURDIR}/MESSAGE 93MESSAGE_SRC+= ${.CURDIR}/MESSAGE
86.endif 94.endif
87 95
88.if !empty(PKG_OPTIONS:Mtcpwrappers) 96.if !empty(PKG_OPTIONS:Mtcpwrappers)
89.include "../../security/tcp_wrappers/buildlink3.mk" 97.include "../../security/tcp_wrappers/buildlink3.mk"
90CONFIGURE_ARGS+= --enable-tcp-wrappers 98CONFIGURE_ARGS+= --enable-tcp-wrappers
91.else 99.else
92CONFIGURE_ARGS+= --disable-tcp-wrappers 100CONFIGURE_ARGS+= --disable-tcp-wrappers
93.endif 101.endif