diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-01 23:18:19 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-01 23:18:19 +0000 |
commit | fa697548c6e992c6b84cb15fcab33c7038e405a7 (patch) | |
tree | fc1da988ed9c9cba707cf220721bac89300d0c78 /mail/extmail | |
parent | aed1a8bb785780fbecb2c74bdc17b7b1b54133a3 (diff) |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=319615
Diffstat (limited to 'mail/extmail')
-rw-r--r-- | mail/extmail/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/mail/extmail/Makefile b/mail/extmail/Makefile index a5e9b720a802..9973f1743704 100644 --- a/mail/extmail/Makefile +++ b/mail/extmail/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: extmail -# Date created: 31 Frebruary 2006 -# Whom: Chifeng QU <chifeng@gmail.com> -# +# Created by: Chifeng QU <chifeng@gmail.com> # $FreeBSD$ -# PORTNAME= extmail PORTVERSION= 1.2 @@ -20,15 +16,15 @@ RUN_DEPENDS= p5-Unix-Syslog>=0:${PORTSDIR}/sysutils/p5-Unix-Syslog USE_PERL5= yes NO_BUILD= yes -OPTIONS= MYSQL "Use MySQL support" On \ - LDAP "Use LDAP support" Off +OPTIONS_DEFINE= MYSQL LDAP +OPTIONS_DEFAULT= MYSQL -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql .endif -.if defined(WITH_LDAP) +.if ${PORT_OPTIONS:MLDAP} RUN_DEPENDS+= p5-DBD-LDAP>=0:${PORTSDIR}/databases/p5-DBD-LDAP .endif @@ -63,4 +59,4 @@ post-install: ${CHMOD} +w ${WWWDIR}/webmail.cf ; \ fi -.include <bsd.port.post.mk> +.include <bsd.port.mk> |