pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/cups-base When building without any mdns support...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1bca0ca30018
branches: trunk
changeset: 388302:1bca0ca30018
user: hauke <hauke%pkgsrc.org@localhost>
date: Wed Nov 16 16:08:11 2022 +0000
description:
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.
diffstat:
print/cups-base/Makefile | 4 ++--
print/cups-base/options.mk | 42 +++++++++++++++++++++++++-----------------
2 files changed, 27 insertions(+), 19 deletions(-)
diffs (89 lines):
diff -r faa9ec723840 -r 1bca0ca30018 print/cups-base/Makefile
--- a/print/cups-base/Makefile Wed Nov 16 14:01:47 2022 +0000
+++ b/print/cups-base/Makefile Wed Nov 16 16:08:11 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.51 2022/10/26 10:31:06 wiz Exp $
+# $NetBSD: Makefile,v 1.52 2022/11/16 16:08:11 hauke Exp $
.include "../../print/cups/Makefile.common"
PKGNAME= cups-base-${CUPS_VERS}
-PKGREVISION= 3
+PKGREVISION= 4
MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenPrinting/}
MAINTAINER= sbd%NetBSD.org@localhost
diff -r faa9ec723840 -r 1bca0ca30018 print/cups-base/options.mk
--- a/print/cups-base/options.mk Wed Nov 16 14:01:47 2022 +0000
+++ b/print/cups-base/options.mk Wed Nov 16 16:08:11 2022 +0000
@@ -1,10 +1,13 @@
-# $NetBSD: options.mk,v 1.6 2022/05/10 20:47:37 markd Exp $
+# $NetBSD: options.mk,v 1.7 2022/11/16 16:08:11 hauke Exp $
-PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base
-PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
-PKG_SUGGESTED_OPTIONS= dnssd kerberos
+PKG_OPTIONS_VAR= PKG_OPTIONS.cups-base
+PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
+PKG_SUGGESTED_OPTIONS= dnssd kerberos
-PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam
+PKG_OPTIONS_OPTIONAL_GROUPS= mdns
+PKG_OPTIONS_GROUP.mdns= mdnssd
+
+PLIST_VARS+= apple dbus dnssd dnssd-backend ippfind libusb pam
.if defined(PKG_OPTIONS.cups)
PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.cups}
@@ -17,12 +20,13 @@
PLIST.ippfind= yes
.else
# CUPS on Darwin does not support DBus and libusb
-PKG_SUPPORTED_OPTIONS+= avahi dbus
-PKG_SUGGESTED_OPTIONS+= dbus
+PKG_SUPPORTED_OPTIONS+= dbus
+PKG_OPTIONS_GROUP.mdns+= avahi
+PKG_SUGGESTED_OPTIONS+= dbus
# Neither DragonFly nor SunOS can build libusb1
. if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
-PKG_SUPPORTED_OPTIONS+= libusb
-PKG_SUGGESTED_OPTIONS+= libusb
+PKG_SUPPORTED_OPTIONS+= libusb
+PKG_SUGGESTED_OPTIONS+= libusb
. endif
.endif
@@ -43,6 +47,18 @@
PLIST.dnssd-backend= yes
.endif
+.if !empty(PKG_OPTIONS:Mdnssd)
+.include "../../net/mDNSResponder/buildlink3.mk"
+CONFIGURE_ARGS+= --with-dnssd=mdnsresponder
+PLIST.dnssd= yes
+PLIST.dnssd-backend= yes
+PLIST.ippfind= yes
+.endif
+
+.if empty(PKG_OPTIONS:Mavahi) && empty(PKG_OPTIONS:Mdnssd)
+CONFIGURE_ARGS+= --with-dnssd=no
+.endif
+
.if !empty(PKG_OPTIONS:Mdbus)
. include "../../sysutils/dbus/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
@@ -51,14 +67,6 @@
CONFIGURE_ARGS+= --disable-dbus
.endif
-.if !empty(PKG_OPTIONS:Mdnssd)
-.include "../../net/mDNSResponder/buildlink3.mk"
-CONFIGURE_ARGS+= --with-dnssd=yes
-PLIST.dnssd= yes
-PLIST.dnssd-backend= yes
-PLIST.ippfind= yes
-.endif
-
.if !empty(PKG_OPTIONS:Mkerberos)
.include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --enable-gssapi
Home |
Main Index |
Thread Index |
Old Index