diff options
author | adamw <adamw@FreeBSD.org> | 2012-09-09 23:44:26 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2012-09-09 23:44:26 +0800 |
commit | 1e9ac432a30912c7099e00d1eaa90bf0b18b320d (patch) | |
tree | 546106b2d699cdc05301a54b94df13d1995e51f1 /mail | |
parent | 73671e942e85714f7a154645fdfb2cc06bdce4af (diff) | |
download | freebsd-ports-gnome-1e9ac432a30912c7099e00d1eaa90bf0b18b320d.tar.gz freebsd-ports-gnome-1e9ac432a30912c7099e00d1eaa90bf0b18b320d.tar.zst freebsd-ports-gnome-1e9ac432a30912c7099e00d1eaa90bf0b18b320d.zip |
Convert the WITH_DATABASE and WITH_LDAP tunables to optionsNG.
PR: ports/171092
Diffstat (limited to 'mail')
-rw-r--r-- | mail/squirrelmail/Makefile | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/mail/squirrelmail/Makefile b/mail/squirrelmail/Makefile index f56e69dc4013..23b5568aecd4 100644 --- a/mail/squirrelmail/Makefile +++ b/mail/squirrelmail/Makefile @@ -25,13 +25,8 @@ IGNORE_WITH_PHP=5 # known incompatibilities with php-5.4, use 5.3 for now USE_BZIP2= yes USE_GETTEXT= yes -.ifdef WITH_DATABASE -RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB -.endif - -.ifdef WITH_LDAP -USE_PHP+= ldap -.endif +OPTIONS_DEFINE= DATABASE LDAP +DATABASE_DESC= PEAR database support (must also intall a driver) .ifndef WITHOUT_WWWDIR SQUIRRELDIR?= ${PREFIX}/www/${PORTNAME} @@ -49,15 +44,26 @@ PORTDOCS= * CONFLICTS= squirreloutlook-[0-9]* +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDATABASE} +RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB +.endif + +.if ${PORT_OPTIONS:MLDAP} +USE_PHP+= ldap +.endif + pre-everything:: @${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}" @${ECHO_CMD} "To use the old location ${PREFIX}/${PORTNAME} define" @${ECHO_CMD} "WITHOUT_WWWDIR when patching or installing" @${ECHO_CMD} - @${ECHO_CMD} "Use WITH_LDAP to ensure PHP LDAP support is installed" - @${ECHO_CMD} "Use WITH_DATABASE to ensure PEAR framework for database support is installed" - @${ECHO_CMD} " (note that this does not install the database specific PEAR support, e.g. MySQL)" +.if ${PORT_OPTIONS:MDATABASE} + @${ECHO_CMD} "Note that the PEAR database framework still requires you to install a" + @${ECHO_CMD} "database-specific PEAR driver, e.g. MySQL." @${ECHO_CMD} +.endif post-patch: .ifndef PATCH_DEBUG |