[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / spamassassin

File: [cvs.NetBSD.org] / pkgsrc / mail / spamassassin / options.mk (download)

Revision 1.16, Sat Nov 2 16:25:28 2019 UTC (4 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
Changes since 1.15: +5 -5 lines

mail: align variable assignments

pkglint -Wall -F --only aligned -r

No manual corrections.

# $NetBSD: options.mk,v 1.16 2019/11/02 16:25:28 rillig Exp $

PKG_SUPPORTED_OPTIONS=	inet6 ssl gnupg1

# Default options

.include "../../mk/bsd.options.mk"

# change t/config according to enable/disable software options
AWL_SQL_TEST?=		n  # to  enable tests, set to 'y' on make command line
BAYES_SQL_TEST?=	n  # to  enable tests, set to 'y' on make command line
LONG_TEST?=		y  # to disable tests, set to 'n' on make command line
NET_TEST?=		y  # to disable tests, set to 'n' on make command line
PREFORK_TEST?=		n  # to  enable tests, set to 'y' on make command line
ROOT_TEST?=		n  # to  enable tests, set to 'y' on make command line

SUBST_CLASSES+=		satests
SUBST_STAGE.satests=	post-configure
SUBST_FILES.satests=	t/config
SUBST_SED.satests=	-e s!awl_sql_tests=n!awl_sql_tests=${AWL_SQL_TEST}!
SUBST_SED.satests+=	-e s!bayes_sql_tests=n!bayes_sql_tests=${BAYES_SQL_TEST}!
SUBST_SED.satests+=	-e s!run_long_tests=n!run_long_tests=${LONG_TEST}!
SUBST_SED.satests+=	-e s!run_net_tests=n!run_net_tests=${NET_TEST}!
SUBST_SED.satests+=	-e s!run_root_tests=n!run_root_tests=${ROOT_TEST}!
SUBST_SED.satests+=	-e s!prefork_stress_test=n!prefork_stress_test=${PREFORK_TEST}!

# Build spamc and spamd with support for connections over SSL
.if !empty(PKG_OPTIONS:Mssl)
.  include "../../security/openssl/buildlink3.mk"
DEPENDS+=		p5-IO-Socket-SSL>=0.92:../../security/p5-IO-Socket-SSL
CONFIGURE_ARGS+=	--enable-ssl
CONFIGURE_ARGS+=	--disable-ssl

# Be prepared for IPv6 nameservers
.if !empty(PKG_OPTIONS:Minet6)
DEPENDS+=		p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6

# use gnupg2 instead of gnupg1
.if empty(PKG_OPTIONS:Mgnupg1)
DEPENDS+=		gnupg2-[0-9]*:../../security/gnupg2
GPGPATH=		${PREFIX}/bin/gpg2
DEPENDS+=		gnupg>=1.0.0:../../security/gnupg
GPGPATH=		${PREFIX}/bin/gpg
SUBST_CLASSES+=		gpgpath
SUBST_STAGE.gpgpath=	pre-configure
SUBST_FILES.gpgpath=	sa-update.raw