diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2013-03-16 06:47:21 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2013-03-16 06:47:21 +0000 |
commit | 8cb8f7534e3d6cc6283ff455300f4dc9e9b672ae (patch) | |
tree | 1d5b89a07444912e755e926a4a2565d5ac2755d2 /mail/postfixadmin | |
parent | c5e8fd1440d346ae8ba0a82383773ce4bba6487b (diff) | |
download | ports-8cb8f7534e3d6cc6283ff455300f4dc9e9b672ae.tar.gz ports-8cb8f7534e3d6cc6283ff455300f4dc9e9b672ae.zip |
Notes
Diffstat (limited to 'mail/postfixadmin')
-rw-r--r-- | mail/postfixadmin/Makefile | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/mail/postfixadmin/Makefile b/mail/postfixadmin/Makefile index 828386f76b93..23c904d12418 100644 --- a/mail/postfixadmin/Makefile +++ b/mail/postfixadmin/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: postfixadmin -# Date created: 23 October 2003 -# Whom: Rob Evers <rob@debank.tv> -# +# Created by: Rob Evers <rob@debank.tv> # $FreeBSD$ -# PORTNAME= postfixadmin PORTVERSION= 2.3.6 @@ -22,30 +18,30 @@ NO_BUILD= yes SUB_FILES+= pkg-message -OPTIONS= MYSQL "MySQL back-end (use mysql PHP extension)" on -OPTIONS+= MYSQLI "MySQL 4.1+ back-end (use mysqli PHP extension)" off -OPTIONS+= PGSQL "PostgreSQL back-end (use pgsql PHP extension)" off +OPTIONS_SINGLE= DB +OPTIONS_SINGLE_DB= MYSQL MYSQLI PGSQL +MYSQL_DESC= MySQL back-end (use mysql PHP extension) +MYSQLI_DESC= MySQL 4.1+ back-end (use mysqli PHP extension) +PGSQL_DESC= PostgreSQL back-end (use pgsql PHP extension) + +OPTIONS_DEFAULT= MYSQL .include <bsd.port.pre.mk> USE_PHP= pcre session mbstring spl xmlrpc -.if !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql .endif -.if defined(WITH_MYSQLI) +.if ${PORT_OPTIONS:MMYSQLI} USE_PHP+= mysqli .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif -.if defined(WITHOUT_MYSQL) && !defined(WITH_MYSQLI) && !defined(WITH_PGSQL) -IGNORE= needs at least one database back-end -.endif - post-patch: @${FIND} ${WRKSRC} -name '*.orig' -delete @@ -80,7 +76,7 @@ do-install: (cd ${WRKSRC}/ADDITIONS/ && \ ${COPYTREE_SHARE} \* ${PREFIX}/www/postfixadmin/ADDITIONS/ "! -name squirrelmail-plugin") -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} (cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${DOCSDIR}) .endif |