- adopt optionsNG
-trim historical header Approved by: portmgr (miwi)
This commit is contained in:
parent
c5e8fd1440
commit
8cb8f7534e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314336
1 changed files with 12 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue