pkgsrc/net/netatalk22/options.mk
khorben 08f3106d89 Update dependencies on print/cups to print/cups-base
This is with the notable exception of meta-pkgs/desktop-gnome, which I
believe implies a fully functional cups.

This is still missing revision bumps - I'll be right there (first time I
am doing this on so many packages at a time).

As discussed on tech-pkg@
2017-11-12 15:36:57 +00:00

68 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.5 2017/11/12 15:36:58 khorben Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.netatalk
PKG_SUPPORTED_OPTIONS= cups debug dnssd kerberos ldap pam slp
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcups)
.include "../../print/cups-base/buildlink3.mk"
CONFIGURE_ARGS+= --enable-cups
.else
CONFIGURE_ARGS+= --disable-cups
.endif
PLIST_VARS+= debug
.if !empty(PKG_OPTIONS:Mdebug)
# Debugging
CONFIGURE_ARGS+= --enable-debug1
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-debugging
CFLAGS+= -g3
INSTALL_UNSTRIPPED= yes
.endif
PLIST_VARS+= dnssd
.if !empty(PKG_OPTIONS:Mdnssd)
.include "../../net/mDNSResponder/buildlink3.mk"
CONFIGURE_ARGS+= --enable-zeroconf
.else
# configure patched to zeroconf="no"
.endif
PLIST_VARS+= gssapi
.if !empty(PKG_OPTIONS:Mkerberos)
.include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --with-gssapi --enable-krbV-uam
CONFIGURE_ENV+= GSSAPI_LIBS="-lkrb5 -lroken -lasn1 -lcrypto -lcom_err"
PLIST.gssapi= yes
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap=yes
PLIST.ldap= yes
CONF_FILES+= ${EGDIR}/afp_ldap.conf ${PKG_SYSCONFDIR}/afp_ldap.conf
.else
CONFIGURE_ARGS+= --with-ldap=no
.endif
PLIST_VARS+= pam
.if !empty(PKG_OPTIONS:Mpam)
.include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
PLIST.pam= yes
MESSAGE_SRC+= MESSAGE MESSAGE.pam
.else
CONFIGURE_ARGS+= --with-pam=no
.endif
.if !empty(PKG_OPTIONS:Mslp)
.include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+= --enable-srvloc
.else
CONFIGURE_ARGS+= --disable-srvloc
.endif