pkgsrc/sysutils/amanda-common/options.mk
jperkin 2e912f3292 Remove mk/find-prefix.mk usage from the sysutils category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:53:29 +00:00

55 lines
1.5 KiB
Makefile

# $NetBSD: options.mk,v 1.12 2015/11/25 12:53:29 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.amanda
# Common options.
PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos ndmp
PKG_SUGGESTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh
# Client options.
PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap
PKG_SUGGESTED_OPTIONS+= amanda-dump-snap
PKG_OPTIONS_LEGACY_VARS+= AMANDA_FQDN:amanda-fqdn
PKG_OPTIONS_LEGACY_VARS+= AMANDA_SSH:amanda-ssh
PKG_OPTIONS_LEGACY_VARS+= AMANDA_SMB:amanda-smb
PKG_OPTIONS_LEGACY_VARS+= AMANDA_DUMP_SNAP:amanda-dump-snap
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --with-ipv6
.else
CONFIGURE_ARGS+= --without-ipv6
.endif
.if !empty(PKG_OPTIONS:Mamanda-fqdn)
CONFIGURE_ARGS+= --with-fqdn
.endif
.if !empty(PKG_OPTIONS:Mamanda-ssh)
CONFIGURE_ARGS+= --with-ssh-security
. if !exists(/usr/bin/ssh)
DEPENDS+= openssh-[0-9]*:../../security/openssh
CONFIGURE_ENV+= ac_cv_path_SSH=${LOCALBASE}/bin/ssh
. endif
.endif
.if !empty(PKG_OPTIONS:Mkerberos)
. if ${OPSYS} == "SunOS"
USE_BUILTIN.mit-krb5= no
. endif
CONFIGURE_ARGS+= --with-krb5-security=${KRB5BASE:Q}
. include "../../mk/krb5.buildlink3.mk"
.endif
# The ndmp code fails to build on OS X >= 10.9, and upstream questions why
# it is enabled. So it is a disabled-by-default option.
# http://www.redhat.com/archives/libvir-list/2013-October/msg01153.html
PLIST_VARS+= ndmp
CONFIGURE_ARGS+= --without-ndmp
.if !empty(PKG_OPTIONS:Mndmp)
CONFIGURE_ARGS+= --with-ndmp
PLIST.ndmp= yes
.else
CONFIGURE_ARGS+= --without-ndmp
.endif