pkgsrc/print/cups15/options.mk
wiz b197101a5f Import cups-1.5.4nb12 as print/cups15, for those that prefer it to cups-1.7.x
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems. It has been developed by Easy Software Products
to promote a standard printing solution for all UNIX vendors and users.
CUPS provides the System V and Berkeley command-line interfaces.

CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
managing print jobs and queues.  The Line Printer Daemon (LPD, RFC1179)
and AppSocket protocols are also supported with reduced functionality.

CUPS adds network printer browsing and PostScript Printer Description
("PPD")-based printing options to support real world applications under
UNIX.

This package contains the older 1.5 series, before Apple stopped
maintaining the filters.
2014-06-17 13:17:12 +00:00

98 lines
2.4 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2014/06/17 13:17:12 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
PKG_OPTIONS_REQUIRED_GROUPS= pdftops
PKG_OPTIONS_GROUP.pdftops= ghostscript poppler
PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos pam slp tcpwrappers
PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos poppler slp
PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript
# Neither DragonFly nor SunOS can build libusb1
.if ${OPSYS} != "DragonFly" && ${OPSYS} != "SunOS"
PKG_SUPPORTED_OPTIONS+= libusb
PKG_SUGGESTED_OPTIONS+= libusb
.endif
.include "../../mk/bsd.options.mk"
MESSAGE_SRC= ${PKGDIR}/MESSAGE
.if !empty(PKG_OPTIONS:Macl)
CONFIGURE_ARGS+= --enable-acl
.else
CONFIGURE_ARGS+= --disable-acl
.endif
PLIST_VARS+= dbus
.if !empty(PKG_OPTIONS:Mdbus)
USE_TOOLS+= pkg-config
. include "../../sysutils/dbus/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
PLIST.dbus= yes
.else
CONFIGURE_ARGS+= --disable-dbus
.endif
PLIST_VARS+= dnssd
.if !empty(PKG_OPTIONS:Mdnssd)
.include "../../net/mDNSResponder/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dnssd
PLIST.dnssd= yes
.else
CONFIGURE_ARGS+= --disable-dnssd
.endif
.if !empty(PKG_OPTIONS:Mghostscript)
USE_TOOLS+= gs:run
CONFIGURE_ARGS+= --with-pdftops=gs
CONFIGURE_ENV+= ac_cv_path_CUPS_GHOSTSCRIPT=${TOOLS_PATH.gs}
.endif
.if !empty(PKG_OPTIONS:Mkerberos)
.include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --enable-gssapi
.else
CONFIGURE_ARGS+= --disable-gssapi
.endif
.if !empty(PKG_OPTIONS:Mlibusb)
.include "../../devel/libusb1/buildlink3.mk"
CONFIGURE_ARGS+= --enable-libusb
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.libusb
USE_TOOLS+= pkg-config
.else
CONFIGURE_ARGS+= --disable-libusb
.endif
PLIST_VARS+= pam
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
PLIST.pam= yes
.else
CONFIGURE_ARGS+= --disable-pam
MESSAGE_SRC= ${.CURDIR}/MESSAGE
.endif
.if !empty(PKG_OPTIONS:Mpoppler)
FIND_PREFIX:= POPPLERDIR=poppler-utils
.include "../../mk/find-prefix.mk"
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
CONFIGURE_ARGS+= --with-pdftops=pdftops
CONFIGURE_ENV+= ac_cv_path_CUPS_PDFTOPS=${POPPLERDIR}/bin/pdftops
.endif
.if !empty(PKG_OPTIONS:Mslp)
.include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+= --enable-slp
.else
CONFIGURE_ARGS+= --disable-slp
.endif
.if !empty(PKG_OPTIONS:Mtcpwrappers)
.include "../../security/tcp_wrappers/buildlink3.mk"
CONFIGURE_ARGS+= --enable-tcp-wrappers
.else
CONFIGURE_ARGS+= --disable-tcp-wrappers
.endif