diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-29 16:23:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-29 16:23:26 +0800 |
commit | 0020494560abde9a2c8676fda01c428635d80287 (patch) | |
tree | 0457838a2d4689213496464e0459f5391781f5f8 /mail | |
parent | 3590eaa540a84d9101ba5d3006a635f09643578f (diff) | |
download | freebsd-ports-gnome-0020494560abde9a2c8676fda01c428635d80287.tar.gz freebsd-ports-gnome-0020494560abde9a2c8676fda01c428635d80287.tar.zst freebsd-ports-gnome-0020494560abde9a2c8676fda01c428635d80287.zip |
Convert to new options framework
Feature safe: yes
Diffstat (limited to 'mail')
-rw-r--r-- | mail/vexim/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/mail/vexim/Makefile b/mail/vexim/Makefile index 0b50dd7973dc..c92103725698 100644 --- a/mail/vexim/Makefile +++ b/mail/vexim/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: vexim -# Date created: 6 June 2005 -# Whom: John Oxley <john@yoafrica.com> -# +# Created by: John Oxley <john@yoafrica.com> # $FreeBSD$ PORTNAME= vexim @@ -23,17 +20,17 @@ SUB_FILES= pkg-message NO_BUILD= yes USE_PHP= gettext session posix -OPTIONS= MYSQL "Use MySQL" On \ - PGSQL "Use PostgreSQL" Off +OPTIONS_DEFINE= MYSQL PGSQL DOCS +OPTIONS_DEFAULT= MYSQL -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes USE_PHP+= mysql .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} WITH_PGSQL= yes USE_PHP+= pgsql .endif @@ -53,7 +50,7 @@ do-install: -type d -exec ${MKDIR} ${DATADIR}/{} \; \ -o \! -path '*.svn*' -type f \ -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${FIND} docs \! -path '*.svn*' \ -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ @@ -67,4 +64,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |