From ab399f9c20387f0e8629125679f97e82613cc5a9 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 30 Jul 2004 21:05:41 +0000 Subject: Convert to use bsd.options.mk. The relevant options variable to set for each package can be determined by invoking: make show-var VARNAME=PKG_OPTIONS_VAR The old options are still supported unless the variable named in PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf). --- mail/fetchmail/Makefile | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) (limited to 'mail/fetchmail') diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index be1364eb26d..12b52e8ac7c 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.144 2004/07/22 17:04:28 drochner Exp $ +# $NetBSD: Makefile,v 1.145 2004/07/30 21:05:41 jlam Exp $ DISTNAME= fetchmail-6.2.5 PKGREVISION= 2 @@ -26,33 +26,51 @@ LDFLAGS+= ${CFLAGS} .include "../../mk/bsd.prefs.mk" -FETCHMAIL_USE_SSL?= yes -BUILD_DEFS+= FETCHMAIL_USE_SSL +# Global and legacy options +.if defined(KERBEROS) && defined(USE_INET6) || defined(FETCHMAIL_USE_SSL) +. if !defined(PKG_OPTIONS.fetchmail) +. if defined(KERBEROS) +PKG_OPTIONS.fetchmail+= kerberos4 +. endif +. if defined(USE_INET6) && !empty(USE_INET6:M[yY][eE][sS]) +PKG_OPTIONS.fetchmail+= inet6 +. endif +. if defined(FETCHMAIL_USE_SSL) && !empty(FETCHMAIL_USE_SSL:M[yY][eE][sS]) +PKG_OPTIONS.fetchmail+= ssl +. endif +. endif +.endif -.if defined(FETCHMAIL_USE_SSL) && !empty(FETCHMAIL_USE_SSL:M[yY][eE][sS]) -. include "../../security/openssl/buildlink3.mk" -CONFIGURE_ARGS+= --with-ssl=${SSLBASE} -.else -CONFIGURE_ARGS+= --without-ssl +PKG_OPTIONS_VAR= PKG_OPTIONS.fetchmail +PKG_SUPPORTED_OPTIONS= inet6 kerberos4 ssl +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-inet6 .endif -.if defined(KERBEROS) -PKG_USE_KERBEROS= yes +.if !empty(PKG_OPTIONS:Mkerberos4) +CRYPTO+= uses Kerberos encryption code CONFIGURE_ARGS+= --with-kerberos=yes -. if ${MACHINE_PLATFORM:MNetBSD-1.[0-4]*-i386} == "" +. if empty(MACHINE_PLATFORM:MNetBSD-1.[0-4]*-i386) REPLACE_KERBEROS_LIBS= # defined . endif .else CONFIGURE_ARGS+= --with-kerberos=no .endif -.if defined(USE_INET6) && !empty(USE_INET6:M[yY][eE][sS]) -CONFIGURE_ARGS+= --enable-inet6 +.if !empty(PKG_OPTIONS:Mssl) +. include "../../security/openssl/buildlink3.mk" +CONFIGURE_ARGS+= --with-ssl=${SSLBASE} +.else +CONFIGURE_ARGS+= --without-ssl .endif DOCDIR= ${PREFIX}/share/doc/fetchmail RCD_SCRIPTS= fetchmail +.include "../../devel/gettext-lib/buildlink3.mk" + post-extract: @${RM} -f ${WRKSRC}/intl/libintl.h .if ${OPSYS} == "NetBSD" @@ -86,5 +104,4 @@ post-install: ${INSTALL_DATA} $$file ${DOCDIR}; \ done -.include "../../devel/gettext-lib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3