pkgsrc/print/cups/options.mk
obache f7f0b9da85 Some clean up:
* exactly disable python and java support same as perl and php
* pdftops filter is installed unconditionally, so change
  PKG_OPTIONS_GROUP.pdftops to REQUIRED_GROUP
* xpdf does not install pdftops tool anymore and using it came from
  poppler-utils.  so deprecate xpdf option and suggest poppler option instead.
* change gs option to ghostscript from option.description.
* exactly select "gs" or "pdftops" and tell its path to configure script.
* change ghostscript dependency from DEPENDS to USE_TOOLS.
* exactly disable gssapi support with "-kerberos" option.
2010-04-18 12:02:58 +00:00

53 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2010/04/18 12:02:58 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
PKG_OPTIONS_REQUIRED_GROUPS= pdftops
PKG_OPTIONS_GROUP.pdftops= ghostscript poppler
PKG_SUPPORTED_OPTIONS= dnssd kerberos pam slp
PKG_SUGGESTED_OPTIONS= dnssd kerberos poppler slp
PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdnssd)
.include "../../net/mDNSResponder/buildlink3.mk"
.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"
.else
CONFIGURE_ARGS+= --disable-gssapi
.endif
PLIST_VARS+= pam
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam
MESSAGE_SRC= ${PKGDIR}/MESSAGE
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