summaryrefslogtreecommitdiff
path: root/print/cups
diff options
context:
space:
mode:
authoradam <adam>2016-12-30 07:08:34 +0000
committeradam <adam>2016-12-30 07:08:34 +0000
commit30cadfb43ac6253f93dd76ff7e65e817110c14e8 (patch)
tree43d198ae1b38d21e5f1dea85925544abbb67d4fb /print/cups
parentde1838756242e3153fcddaa97bbfd40591380f9b (diff)
downloadpkgsrc-30cadfb43ac6253f93dd76ff7e65e817110c14e8.tar.gz
Added avahi as an option so ippfind can be build; unified PLIST and cleanup for Darwin
Diffstat (limited to 'print/cups')
-rw-r--r--print/cups/Makefile25
-rw-r--r--print/cups/PLIST10
-rw-r--r--print/cups/PLIST.Darwin372
-rw-r--r--print/cups/buildlink3.mk6
-rw-r--r--print/cups/options.mk36
5 files changed, 46 insertions, 403 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index ef3b2d5c5c9..8dc3bdb6e33 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,24 +1,25 @@
-# $NetBSD: Makefile,v 1.236 2016/12/12 14:26:15 wiz Exp $
+# $NetBSD: Makefile,v 1.237 2016/12/30 07:08:34 adam Exp $
DISTNAME= cups-2.2.1-source
PKGNAME= ${DISTNAME:S/-source//}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/}
-GITHUB_RELEASE= v${PKGVERSION_NOREV}
MAINTAINER= sbd@NetBSD.org
HOMEPAGE= http://www.cups.org/
COMMENT= Common UNIX Printing System
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
+GITHUB_RELEASE= v${PKGVERSION_NOREV}
+
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
UNLIMIT_RESOURCES= datasize memorysize
USE_LANGUAGES= c c++ # pdftops is a C++ application
-USE_PKGLOCALEDIR= yes
-USE_TOOLS+= aclocal autoconf automake gmake
USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= aclocal autoconf automake gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
@@ -34,6 +35,7 @@ CONFIGURE_ARGS+= --enable-libpaper
CONFIGURE_ARGS+= --enable-libtool
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ARGS+= --with-manext=bsd
+CONFIGURE_ARGS+= --without-bundledir
CONFIGURE_ARGS+= --without-icondir
CONFIGURE_ARGS+= --without-menudir
CONFIGURE_ARGS+= --without-perl
@@ -55,11 +57,6 @@ CONFIGURE_ENV+= ac_cv_func_epoll_create=no
.endif
LIBS+= ${BUILDLINK_LDADD.iconv}
-PLIST_VARS+= notmac
-.if ${OPSYS} != "Darwin"
-PLIST.notmac= yes
-.endif
-
# Avoid the following error when compiling with clang.
# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
# can not be used when making a shared object; recompile with -fPIC
@@ -77,7 +74,7 @@ FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q}
PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS
-PKG_USERS_VARS+= CUPS_USER
+PKG_USERS_VARS= CUPS_USER
BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE
@@ -133,10 +130,6 @@ SUBST_SED.piefix= -e 's|@PIEFLAGS@||g'
SUBST_STAGE.piefix= post-patch
.endif
-.if ${OPSYS} == "Darwin"
-PLIST_SRC= PLIST.Darwin
-.endif
-
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR}
INSTALL_ENV+= DSTROOT=${DESTDIR}
@@ -171,9 +164,9 @@ post-install:
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
+.include "../../print/libpaper/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
-.include "../../print/libpaper/buildlink3.mk"
-.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/print/cups/PLIST b/print/cups/PLIST
index 5714b4b9cb1..d96db7bf723 100644
--- a/print/cups/PLIST
+++ b/print/cups/PLIST
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.57 2016/10/09 08:33:16 leot Exp $
+@comment $NetBSD: PLIST,v 1.58 2016/12/30 07:08:34 adam Exp $
bin/cancel
bin/cups-config
bin/cupstestdsc
bin/cupstestppd
+${PLIST.ippfind}bin/ippfind
bin/ipptool
bin/lp
bin/lpoptions
@@ -35,6 +36,10 @@ lib/libcupscgi.la
lib/libcupsimage.la
lib/libcupsmime.la
lib/libcupsppdc.la
+${PLIST.apple}libexec/cups/apple/http
+${PLIST.apple}libexec/cups/apple/https
+${PLIST.apple}libexec/cups/apple/ipp
+${PLIST.apple}libexec/cups/apple/ipps
${PLIST.dnssd}libexec/cups/backend/dnssd
libexec/cups/backend/http
libexec/cups/backend/https
@@ -72,6 +77,7 @@ man/man1/cups-config.1
man/man1/cups.1
man/man1/cupstestdsc.1
man/man1/cupstestppd.1
+${PLIST.ippfind}man/man1/ippfind.1
man/man1/ipptool.1
man/man1/lp.1
man/man1/lpoptions.1
@@ -711,8 +717,8 @@ share/doc/cups/pt_BR/index.html
share/doc/cups/robots.txt
share/doc/cups/ru/index.html
share/examples/cups/cups-files.conf
-share/examples/cups/cupsd.conf
${PLIST.pam}share/examples/cups/cups.pam
+share/examples/cups/cupsd.conf
share/examples/cups/snmp.conf
share/locale/ca/cups_ca.po
share/locale/cs/cups_cs.po
diff --git a/print/cups/PLIST.Darwin b/print/cups/PLIST.Darwin
deleted file mode 100644
index c4ad147e904..00000000000
--- a/print/cups/PLIST.Darwin
+++ /dev/null
@@ -1,372 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.1 2016/01/03 19:56:18 bsiegert Exp $
-bin/cancel
-bin/cups-config
-bin/cupstestdsc
-bin/cupstestppd
-bin/ippfind
-bin/ipptool
-bin/lp
-bin/lpoptions
-bin/lpq
-bin/lpr
-bin/lprm
-bin/lpstat
-bin/ppdc
-bin/ppdhtml
-bin/ppdi
-bin/ppdmerge
-bin/ppdpo
-include/cups/adminutil.h
-include/cups/array.h
-include/cups/backend.h
-include/cups/cgi.h
-include/cups/cups.h
-include/cups/dir.h
-include/cups/file.h
-include/cups/help-index.h
-include/cups/http.h
-include/cups/ipp.h
-include/cups/language.h
-include/cups/mime.h
-include/cups/ppd.h
-include/cups/ppdc.h
-include/cups/pwg.h
-include/cups/raster.h
-include/cups/sidechannel.h
-include/cups/transcode.h
-include/cups/versioning.h
-lib/libcups.la
-lib/libcupscgi.la
-lib/libcupsimage.la
-lib/libcupsmime.la
-lib/libcupsppdc.la
-libexec/cups/apple/http
-libexec/cups/apple/https
-libexec/cups/apple/ipp
-libexec/cups/apple/ipps
-${PLIST.dnssd}libexec/cups/backend/dnssd
-libexec/cups/backend/http
-libexec/cups/backend/https
-libexec/cups/backend/ipp
-libexec/cups/backend/ipps
-libexec/cups/backend/lpd
-${PLIST.dnssd}libexec/cups/backend/mdns
-libexec/cups/backend/snmp
-libexec/cups/backend/socket
-libexec/cups/backend/usb
-libexec/cups/cgi-bin/admin.cgi
-libexec/cups/cgi-bin/classes.cgi
-libexec/cups/cgi-bin/help.cgi
-libexec/cups/cgi-bin/jobs.cgi
-libexec/cups/cgi-bin/printers.cgi
-libexec/cups/daemon/cups-deviced
-libexec/cups/daemon/cups-driverd
-libexec/cups/daemon/cups-exec
-libexec/cups/daemon/cups-lpd
-libexec/cups/filter/commandtops
-libexec/cups/filter/gziptoany
-libexec/cups/filter/pstops
-libexec/cups/filter/rastertodymo
-libexec/cups/filter/rastertoepson
-libexec/cups/filter/rastertohp
-libexec/cups/filter/rastertolabel
-libexec/cups/filter/rastertopwg
-libexec/cups/monitor/bcp
-libexec/cups/monitor/tbcp
-libexec/cups/notifier/mailto
-libexec/cups/notifier/rss
-man/man1/cancel.1
-man/man1/cups-config.1
-man/man1/cups.1
-man/man1/cupstestdsc.1
-man/man1/cupstestppd.1
-man/man1/ippfind.1
-man/man1/ipptool.1
-man/man1/lp.1
-man/man1/lpoptions.1
-man/man1/lpq.1
-man/man1/lpr.1
-man/man1/lprm.1
-man/man1/lpstat.1
-man/man1/ppdc.1
-man/man1/ppdhtml.1
-man/man1/ppdi.1
-man/man1/ppdmerge.1
-man/man1/ppdpo.1
-man/man5/classes.conf.5
-man/man5/client.conf.5
-man/man5/cups-files.conf.5
-man/man5/cups-snmp.conf.5
-man/man5/cupsd-logs.5
-man/man5/cupsd.conf.5
-man/man5/ipptoolfile.5
-man/man5/mailto.conf.5
-man/man5/mime.convs.5
-man/man5/mime.types.5
-man/man5/ppdcfile.5
-man/man5/printers.conf.5
-man/man5/subscriptions.conf.5
-man/man7/backend.7
-man/man7/filter.7
-man/man7/notifier.7
-man/man8/accept.8
-man/man8/cups-deviced.8
-man/man8/cups-driverd.8
-man/man8/cups-exec.8
-man/man8/cups-lpd.8
-man/man8/cups-snmp.8
-man/man8/cupsaccept.8
-man/man8/cupsaddsmb.8
-man/man8/cupsctl.8
-man/man8/cupsd-helper.8
-man/man8/cupsd.8
-man/man8/cupsdisable.8
-man/man8/cupsenable.8
-man/man8/cupsfilter.8
-man/man8/cupsreject.8
-man/man8/lpadmin.8
-man/man8/lpc.8
-man/man8/lpinfo.8
-man/man8/lpmove.8
-man/man8/reject.8
-sbin/accept
-sbin/cupsaccept
-sbin/cupsaddsmb
-sbin/cupsctl
-sbin/cupsd
-sbin/cupsdisable
-sbin/cupsenable
-sbin/cupsfilter
-sbin/cupsreject
-sbin/lpadmin
-sbin/lpc
-sbin/lpinfo
-sbin/lpmove
-sbin/reject
-share/cups/drv/sample.drv
-share/cups/examples/color.drv
-share/cups/examples/constraint.drv
-share/cups/examples/custom.drv
-share/cups/examples/grouping.drv
-share/cups/examples/laserjet-basic.drv
-share/cups/examples/laserjet-pjl.drv
-share/cups/examples/minimum.drv
-share/cups/examples/postscript.drv
-share/cups/examples/r300-basic.drv
-share/cups/examples/r300-colorman.drv
-share/cups/examples/r300-remote.drv
-share/cups/ipptool/color.jpg
-share/cups/ipptool/create-printer-subscription.test
-share/cups/ipptool/document-a4.pdf
-share/cups/ipptool/document-a4.ps
-share/cups/ipptool/document-letter.pdf
-share/cups/ipptool/document-letter.ps
-share/cups/ipptool/get-completed-jobs.test
-share/cups/ipptool/get-jobs.test
-share/cups/ipptool/get-notifications.test
-share/cups/ipptool/get-printer-attributes.test
-share/cups/ipptool/get-subscriptions.test
-share/cups/ipptool/gray.jpg
-share/cups/ipptool/ipp-1.1.test
-share/cups/ipptool/ipp-2.0.test
-share/cups/ipptool/ipp-2.1.test
-share/cups/ipptool/ipp-2.2.test
-share/cups/ipptool/ipp-everywhere.test
-share/cups/ipptool/onepage-a4.pdf
-share/cups/ipptool/onepage-a4.ps
-share/cups/ipptool/onepage-letter.pdf
-share/cups/ipptool/onepage-letter.ps
-share/cups/ipptool/print-job-deflate.test
-share/cups/ipptool/print-job-gzip.test
-share/cups/ipptool/print-job.test
-share/cups/ipptool/testfile.jpg
-share/cups/ipptool/testfile.pcl
-share/cups/ipptool/testfile.pdf
-share/cups/ipptool/testfile.ps
-share/cups/ipptool/testfile.txt
-share/cups/ipptool/validate-job.test
-share/cups/mime/mime.convs
-share/cups/mime/mime.types
-share/cups/ppdc/epson.h
-share/cups/ppdc/font.defs
-share/cups/ppdc/hp.h
-share/cups/ppdc/label.h
-share/cups/ppdc/media.defs
-share/cups/ppdc/raster.defs
-share/cups/templates/add-class.tmpl
-share/cups/templates/add-printer.tmpl
-share/cups/templates/add-rss-subscription.tmpl
-share/cups/templates/admin.tmpl
-share/cups/templates/choose-device.tmpl
-share/cups/templates/choose-make.tmpl
-share/cups/templates/choose-model.tmpl
-share/cups/templates/choose-serial.tmpl
-share/cups/templates/choose-uri.tmpl
-share/cups/templates/class-added.tmpl
-share/cups/templates/class-confirm.tmpl
-share/cups/templates/class-deleted.tmpl
-share/cups/templates/class-jobs-header.tmpl
-share/cups/templates/class-modified.tmpl
-share/cups/templates/class.tmpl
-share/cups/templates/classes-header.tmpl
-share/cups/templates/classes.tmpl
-share/cups/templates/command.tmpl
-share/cups/templates/edit-config.tmpl
-share/cups/templates/error-op.tmpl
-share/cups/templates/error.tmpl
-share/cups/templates/header.tmpl
-share/cups/templates/help-header.tmpl
-share/cups/templates/help-printable.tmpl
-share/cups/templates/help-trailer.tmpl
-share/cups/templates/job-cancel.tmpl
-share/cups/templates/job-hold.tmpl
-share/cups/templates/job-move.tmpl
-share/cups/templates/job-moved.tmpl
-share/cups/templates/job-release.tmpl
-share/cups/templates/job-restart.tmpl
-share/cups/templates/jobs-header.tmpl
-share/cups/templates/jobs.tmpl
-share/cups/templates/list-available-printers.tmpl
-share/cups/templates/modify-class.tmpl
-share/cups/templates/modify-printer.tmpl
-share/cups/templates/norestart.tmpl
-share/cups/templates/option-boolean.tmpl
-share/cups/templates/option-conflict.tmpl
-share/cups/templates/option-header.tmpl
-share/cups/templates/option-pickmany.tmpl
-share/cups/templates/option-pickone.tmpl
-share/cups/templates/option-trailer.tmpl
-share/cups/templates/pager.tmpl
-share/cups/templates/printer-accept.tmpl
-share/cups/templates/printer-added.tmpl
-share/cups/templates/printer-cancel-jobs.tmpl
-share/cups/templates/printer-configured.tmpl
-share/cups/templates/printer-confirm.tmpl
-share/cups/templates/printer-default.tmpl
-share/cups/templates/printer-deleted.tmpl
-share/cups/templates/printer-jobs-header.tmpl
-share/cups/templates/printer-modified.tmpl
-share/cups/templates/printer-reject.tmpl
-share/cups/templates/printer-start.tmpl
-share/cups/templates/printer-stop.tmpl
-share/cups/templates/printer.tmpl
-share/cups/templates/printers-header.tmpl
-share/cups/templates/printers.tmpl
-share/cups/templates/restart.tmpl
-share/cups/templates/samba-export.tmpl
-share/cups/templates/samba-exported.tmpl
-share/cups/templates/search.tmpl
-share/cups/templates/set-printer-options-header.tmpl
-share/cups/templates/set-printer-options-trailer.tmpl
-share/cups/templates/subscription-added.tmpl
-share/cups/templates/subscription-canceled.tmpl
-share/cups/templates/test-page.tmpl
-share/cups/templates/trailer.tmpl
-share/cups/templates/users.tmpl
-share/doc/cups/LICENSE.txt
-share/doc/cups/README.txt
-share/doc/cups/apple-touch-icon.png
-share/doc/cups/cups-printable.css
-share/doc/cups/cups.css
-share/doc/cups/help/accounting.html
-share/doc/cups/help/api-array.html
-share/doc/cups/help/api-cgi.html
-share/doc/cups/help/api-cups.html
-share/doc/cups/help/api-driver.html
-share/doc/cups/help/api-filedir.html
-share/doc/cups/help/api-filter.html
-share/doc/cups/help/api-httpipp.html
-share/doc/cups/help/api-mime.html
-share/doc/cups/help/api-overview.html
-share/doc/cups/help/api-ppd.html
-share/doc/cups/help/api-ppdc.html
-share/doc/cups/help/api-raster.html
-share/doc/cups/help/cgi.html
-share/doc/cups/help/glossary.html
-share/doc/cups/help/kerberos.html
-share/doc/cups/help/license.html
-share/doc/cups/help/man-backend.html
-share/doc/cups/help/man-cancel.html
-share/doc/cups/help/man-classes.conf.html
-share/doc/cups/help/man-client.conf.html
-share/doc/cups/help/man-cups-config.html
-share/doc/cups/help/man-cups-files.conf.html
-share/doc/cups/help/man-cups-lpd.html
-share/doc/cups/help/man-cups-snmp.html
-share/doc/cups/help/man-cups.html
-share/doc/cups/help/man-cupsaccept.html
-share/doc/cups/help/man-cupsaddsmb.html
-share/doc/cups/help/man-cupsd-helper.html
-share/doc/cups/help/man-cupsd-logs.html
-share/doc/cups/help/man-cupsd.conf.html
-share/doc/cups/help/man-cupsd.html
-share/doc/cups/help/man-cupsenable.html
-share/doc/cups/help/man-cupstestdsc.html
-share/doc/cups/help/man-cupstestppd.html
-share/doc/cups/help/man-filter.html
-share/doc/cups/help/man-ipptool.html
-share/doc/cups/help/man-ipptoolfile.html
-share/doc/cups/help/man-lp.html
-share/doc/cups/help/man-lpadmin.html
-share/doc/cups/help/man-lpc.html
-share/doc/cups/help/man-lpinfo.html
-share/doc/cups/help/man-lpmove.html
-share/doc/cups/help/man-lpoptions.html
-share/doc/cups/help/man-lpq.html
-share/doc/cups/help/man-lpr.html
-share/doc/cups/help/man-lprm.html
-share/doc/cups/help/man-lpstat.html
-share/doc/cups/help/man-mime.convs.html
-share/doc/cups/help/man-mime.types.html
-share/doc/cups/help/man-notifier.html
-share/doc/cups/help/man-ppdc.html
-share/doc/cups/help/man-ppdhtml.html
-share/doc/cups/help/man-ppdi.html
-share/doc/cups/help/man-ppdmerge.html
-share/doc/cups/help/man-ppdpo.html
-share/doc/cups/help/man-printers.conf.html
-share/doc/cups/help/man-subscriptions.conf.html
-share/doc/cups/help/network.html
-share/doc/cups/help/options.html
-share/doc/cups/help/overview.html
-share/doc/cups/help/policies.html
-share/doc/cups/help/postscript-driver.html
-share/doc/cups/help/ppd-compiler.html
-share/doc/cups/help/raster-driver.html
-share/doc/cups/help/ref-ppdcfile.html
-share/doc/cups/help/security.html
-share/doc/cups/help/sharing.html
-share/doc/cups/help/spec-banner.html
-share/doc/cups/help/spec-cmp.html
-share/doc/cups/help/spec-command.html
-share/doc/cups/help/spec-design.html
-share/doc/cups/help/spec-ipp.html
-share/doc/cups/help/spec-pdf.html
-share/doc/cups/help/spec-postscript.html
-share/doc/cups/help/spec-ppd.html
-share/doc/cups/help/spec-raster.html
-share/doc/cups/help/spec-stp.html
-share/doc/cups/help/translation.html
-share/doc/cups/images/color-wheel.png
-share/doc/cups/images/cups-block-diagram.png
-share/doc/cups/images/cups-command-chain.png
-share/doc/cups/images/cups-icon.png
-share/doc/cups/images/cups-postscript-chain.png
-share/doc/cups/images/cups-raster-chain.png
-share/doc/cups/images/cups.png
-share/doc/cups/images/generic.png
-share/doc/cups/images/left.gif
-share/doc/cups/images/raster-organization.png
-share/doc/cups/images/raster.png
-share/doc/cups/images/right.gif
-share/doc/cups/images/sample-image.png
-share/doc/cups/images/sel.gif
-share/doc/cups/images/smiley.jpg
-share/doc/cups/images/unsel.gif
-share/doc/cups/images/wait.gif
-share/doc/cups/index.html
-share/doc/cups/robots.txt
-share/examples/cups/cups-files.conf
-share/examples/cups/cupsd.conf
-${PLIST.pam}share/examples/cups/cups.pam
-share/examples/cups/snmp.conf
diff --git a/print/cups/buildlink3.mk b/print/cups/buildlink3.mk
index e6dc454eee2..924a70e26fb 100644
--- a/print/cups/buildlink3.mk
+++ b/print/cups/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.36 2016/09/20 11:12:22 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.37 2016/12/30 07:08:34 adam Exp $
BUILDLINK_TREE+= cups
@@ -20,6 +20,10 @@ pkgbase := cups
.include "../../net/mDNSResponder/buildlink3.mk"
.endif
+.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.cups:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+.endif
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
diff --git a/print/cups/options.mk b/print/cups/options.mk
index 9b0f494b98e..a32987f5c2e 100644
--- a/print/cups/options.mk
+++ b/print/cups/options.mk
@@ -1,13 +1,23 @@
-# $NetBSD: options.mk,v 1.18 2014/08/23 20:02:11 schnoebe Exp $
+# $NetBSD: options.mk,v 1.19 2016/12/30 07:08:34 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
-PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos pam tcpwrappers
-PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos
+PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
+PKG_SUGGESTED_OPTIONS= dnssd kerberos
+PLIST_VARS+= apple dbus dnssd ippfind libusb pam
+
+.if ${OPSYS} == "Darwin"
+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
# Neither DragonFly nor SunOS can build libusb1
-.if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
-PKG_SUPPORTED_OPTIONS+= libusb
-PKG_SUGGESTED_OPTIONS+= libusb
+. if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
+PKG_SUPPORTED_OPTIONS+= libusb
+PKG_SUGGESTED_OPTIONS+= libusb
+. endif
.endif
.include "../../mk/bsd.options.mk"
@@ -20,9 +30,15 @@ CONFIGURE_ARGS+= --enable-acl
CONFIGURE_ARGS+= --disable-acl
.endif
-PLIST_VARS+= dbus
+.if !empty(PKG_OPTIONS:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-avahi
+PLIST.ippfind= yes
+.else
+CONFIGURE_ARGS+= --disable-avahi
+.endif
+
.if !empty(PKG_OPTIONS:Mdbus)
-USE_TOOLS+= pkg-config
. include "../../sysutils/dbus/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
PLIST.dbus= yes
@@ -30,7 +46,6 @@ PLIST.dbus= yes
CONFIGURE_ARGS+= --disable-dbus
.endif
-PLIST_VARS+= dnssd
.if !empty(PKG_OPTIONS:Mdnssd)
.include "../../net/mDNSResponder/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dnssd
@@ -46,18 +61,15 @@ CONFIGURE_ARGS+= --enable-gssapi
CONFIGURE_ARGS+= --disable-gssapi
.endif
-PLIST_VARS+= libusb
.if !empty(PKG_OPTIONS:Mlibusb)
.include "../../devel/libusb1/buildlink3.mk"
CONFIGURE_ARGS+= --enable-libusb
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb
-USE_TOOLS+= pkg-config
PLIST.libusb= yes
.else
CONFIGURE_ARGS+= --disable-libusb
.endif
-PLIST_VARS+= pam
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam