pkgsrc/print/cups-filters/options.mk
leot 323b9e870b cups-filters: Make avahi' and dbus' support available as PKG_OPTIONS
Make `avahi' and `dbus' available as PKG_OPTIONS, both enabled by default (as
per old cups-filters).

Please note that gdbus-codegen is invoked unconditionally and so still needed
also in the `-dbus' case.

Bump PKGREVISION (strictly speaking that's probably not needed but the dbus
dependency was previously picked up indirectly via net/avahi).
2017-12-17 21:16:07 +00:00

27 lines
548 B
Makefile

# $NetBSD: options.mk,v 1.1 2017/12/17 21:16:07 leot Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups-filters
PKG_SUPPORTED_OPTIONS= avahi dbus
PKG_SUGGESTED_OPTIONS= avahi dbus
.include "../../mk/bsd.options.mk"
#
# Avahi support
#
.if !empty(PKG_OPTIONS:Mavahi)
.include "../../net/avahi/buildlink3.mk"
CONFIGURE_ARGS+= --enable-avahi
.else
CONFIGURE_ARGS+= --disable-avahi
.endif
#
# DBus support
#
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
.else
CONFIGURE_ARGS+= --disable-dbus
.endif