pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/print/cups-base
Module Name: pkgsrc
Committed By: hauke
Date: Wed Nov 16 16:08:11 UTC 2022
Modified Files:
pkgsrc/print/cups-base: Makefile options.mk
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 pkgsrc/print/cups-base/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/print/cups-base/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/print/cups-base/Makefile
diff -u pkgsrc/print/cups-base/Makefile:1.51 pkgsrc/print/cups-base/Makefile:1.52
--- pkgsrc/print/cups-base/Makefile:1.51 Wed Oct 26 10:31:06 2022
+++ pkgsrc/print/cups-base/Makefile Wed Nov 16 16:08:11 2022
@@ -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
Index: pkgsrc/print/cups-base/options.mk
diff -u pkgsrc/print/cups-base/options.mk:1.6 pkgsrc/print/cups-base/options.mk:1.7
--- pkgsrc/print/cups-base/options.mk:1.6 Tue May 10 20:47:37 2022
+++ pkgsrc/print/cups-base/options.mk Wed Nov 16 16:08:11 2022
@@ -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.apple= yes
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.ippfind= yes
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 @@ PLIST.dbus= yes
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