summaryrefslogtreecommitdiff
path: root/mail/fetchmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/fetchmail/Makefile')
-rw-r--r--mail/fetchmail/Makefile45
1 files changed, 31 insertions, 14 deletions
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"