aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfixadmin
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-03-16 14:47:21 +0800
committerjgh <jgh@FreeBSD.org>2013-03-16 14:47:21 +0800
commit93c7bc8b611b76014d75ee80db220e05bf38946a (patch)
tree1d5b89a07444912e755e926a4a2565d5ac2755d2 /mail/postfixadmin
parent9b21845cd4904d863cac45abd1f4b72f131b8597 (diff)
downloadfreebsd-ports-gnome-93c7bc8b611b76014d75ee80db220e05bf38946a.tar.gz
freebsd-ports-gnome-93c7bc8b611b76014d75ee80db220e05bf38946a.tar.zst
freebsd-ports-gnome-93c7bc8b611b76014d75ee80db220e05bf38946a.zip
- adopt optionsNG
-trim historical header Approved by: portmgr (miwi)
Diffstat (limited to 'mail/postfixadmin')
-rw-r--r--mail/postfixadmin/Makefile28
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