2010-05-20 11:35:58 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2010/05/20 09:35:58 sbd Exp $
|
2008-01-23 00:58:13 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
|
2010-04-18 14:02:58 +02:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= pdftops
|
|
|
|
PKG_OPTIONS_GROUP.pdftops= ghostscript poppler
|
2008-01-23 00:58:13 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= dnssd kerberos pam slp
|
2009-06-03 12:20:59 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= dnssd kerberos poppler slp
|
2010-04-18 14:02:58 +02:00
|
|
|
PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript
|
2009-06-03 12:20:59 +02:00
|
|
|
|
2008-01-23 00:58:13 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-06-03 12:20:59 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdnssd)
|
|
|
|
.include "../../net/mDNSResponder/buildlink3.mk"
|
2010-05-20 11:35:58 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dnssd
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-dnssd
|
2009-06-03 12:20:59 +02:00
|
|
|
.endif
|
|
|
|
|
2010-04-18 14:02:58 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mghostscript)
|
|
|
|
USE_TOOLS+= gs:run
|
|
|
|
CONFIGURE_ARGS+= --with-pdftops=gs
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_CUPS_GHOSTSCRIPT=${TOOLS_PATH.gs}
|
2009-06-03 12:20:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos)
|
|
|
|
.include "../../mk/krb5.buildlink3.mk"
|
2010-05-20 11:35:58 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-gssapi
|
2010-04-18 14:02:58 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gssapi
|
2009-06-03 12:20:59 +02:00
|
|
|
.endif
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= pam
|
2008-01-23 00:58:13 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
|
|
. include "../../mk/pam.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-pam
|
|
|
|
MESSAGE_SRC= ${PKGDIR}/MESSAGE
|
|
|
|
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.pam= yes
|
2008-01-23 00:58:13 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pam
|
|
|
|
MESSAGE_SRC= ${.CURDIR}/MESSAGE
|
|
|
|
.endif
|
|
|
|
|
2009-06-03 12:20:59 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpoppler)
|
2010-04-18 14:02:58 +02:00
|
|
|
FIND_PREFIX:= POPPLERDIR=poppler-utils
|
|
|
|
.include "../../mk/find-prefix.mk"
|
2009-06-03 12:20:59 +02:00
|
|
|
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
|
2010-04-18 14:02:58 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pdftops=pdftops
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_CUPS_PDFTOPS=${POPPLERDIR}/bin/pdftops
|
2009-06-03 12:20:59 +02:00
|
|
|
.endif
|
|
|
|
|
2008-01-23 00:58:13 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mslp)
|
|
|
|
.include "../../net/openslp/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-slp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-slp
|
|
|
|
.endif
|