pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dovecot Convert to use bsd.options.mk.
details: https://anonhg.NetBSD.org/pkgsrc/rev/01e0fd0779cc
branches: trunk
changeset: 478892:01e0fd0779cc
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Aug 01 07:04:45 2004 +0000
description:
Convert to use bsd.options.mk.
diffstat:
mail/dovecot/Makefile | 42 +++-----------------------------
mail/dovecot/options.mk | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 38 deletions(-)
diffs (131 lines):
diff -r 086af5120f2a -r 01e0fd0779cc mail/dovecot/Makefile
--- a/mail/dovecot/Makefile Sun Aug 01 05:18:59 2004 +0000
+++ b/mail/dovecot/Makefile Sun Aug 01 07:04:45 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2004/08/01 05:17:19 schmonz Exp $
+# $NetBSD: Makefile,v 1.26 2004/08/01 07:04:45 jlam Exp $
DISTNAME= dovecot-0.99.10.9
CATEGORIES= mail
@@ -29,42 +29,7 @@
CONFIGURE_ENV+= F77=${FALSE}
.include "../../mk/bsd.prefs.mk"
-
-BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \
- DOVECOT_USE_PGSQL USE_INET6 USE_OPENLDAP USE_SASL2
-
-.if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --enable-ssl=gnutls
-. include "../../security/gnutls/buildlink3.mk"
-.else
-CONFIGURE_ARGS+= --enable-ssl=openssl
-. include "../../security/openssl/buildlink3.mk"
-.endif
-
-.if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS])
-CONFIGURE_ARGS+= --with-mysql
-. include "../../databases/mysql4-client/buildlink3.mk"
-.endif
-
-.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --with-pgsql
-CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql
-. include "../../mk/pgsql.buildlink3.mk"
-.endif
-
-.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
-
-.if !empty(USE_OPENLDAP:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --with-ldap
-. include "../../databases/openldap/buildlink3.mk"
-.endif
-
-.if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --with-cyrus-sasl2
-. include "../../security/cyrus-sasl2/buildlink3.mk"
-.endif
+.include "options.mk"
RCD_SCRIPTS= dovecot
@@ -76,7 +41,8 @@
EGDIR= ${PREFIX}/share/examples/dovecot
CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
-INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot share/examples/dovecot
+INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot \
+ share/examples/dovecot
post-configure:
@cd ${WRKSRC}; \
diff -r 086af5120f2a -r 01e0fd0779cc mail/dovecot/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot/options.mk Sun Aug 01 07:04:45 2004 +0000
@@ -0,0 +1,64 @@
+# $NetBSD: options.mk,v 1.1 2004/08/01 07:04:45 jlam Exp $
+
+# Global and legacy options
+.if defined(DOVECOT_USE_GNUTLS) || defined(DOVECOT_USE_MYSQL) || \
+ defined(DOVECOT_USE_PGSQL) || defined(USE_INET6) || \
+ defined(USE_OPENLDAP) || defined(USE_SASL2)
+. if !defined(PKG_OPTIONS.dovecot)
+. if defined(DOVECOT_USE_GNUTLS) && !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= gnutls
+. endif
+. if defined(DOVECOT_USE_MYSQL) && !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= mysql
+. endif
+. if defined(DOVECOT_USE_PGSQL) && !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= pgsql
+. endif
+. if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= inet6
+. endif
+. if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= openldap
+. endif
+. if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss])
+PKG_OPTIONS.dovecot+= sasl
+. endif
+. endif
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dovecot
+PKG_SUPPORTED_OPTIONS= gnutls inet6 ldap mysql pgsql sasl
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+CONFIGURE_ARGS+= --enable-ssl=gnutls
+. include "../../security/gnutls/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --enable-ssl=openssl
+. include "../../security/openssl/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+CONFIGURE_ARGS+= --with-mysql
+. include "../../databases/mysql4-client/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+CONFIGURE_ARGS+= --with-pgsql
+CPPFLAGS+= -I${BUILDLINK_DIR}/include/pgsql
+. include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+= --with-ldap
+. include "../../databases/openldap/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msasl)
+CONFIGURE_ARGS+= --with-cyrus-sasl2
+. include "../../security/cyrus-sasl2/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index