From 2d496adc91a0d180d81f5ab2f274da5887cc01d3 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Tue, 6 Mar 2007 06:28:02 +0000 Subject: Use the new facility of bsd.port.mk to be able to simplify the interaction of USE_PHP and OPTIONS. PR: ports/106557 Submitted by: ale Hat: portmgr --- mail/roundcube/Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'mail') diff --git a/mail/roundcube/Makefile b/mail/roundcube/Makefile index ae6752ab50ba..3767021727b1 100644 --- a/mail/roundcube/Makefile +++ b/mail/roundcube/Makefile @@ -49,18 +49,11 @@ REINPLACE_ARGS= -i "" MAIL= mail .endif PLIST_SUB+= MAIL=${MAIL} -LOCALBASE?= /usr/local - -.if exists(${LOCALBASE}/etc/php.conf) -.include "${LOCALBASE}/etc/php.conf" -.endif OPTIONS= MYSQL "Use MySQL backend" on \ - PGSQL "Use PostgreSQL backend" off -.if defined(PHP_VER) && ${PHP_VER} == 5 -OPTIONS+= SQLITE "Use SQLite backend" off -.endif -OPTIONS+= SPELLCHECK "Enable spellchecking" off \ + PGSQL "Use PostgreSQL backend" off \ + SQLITE "Use SQLite backend (php5 only)" off \ + SPELLCHECK "Enable spellchecking" off \ LOCALCHECK "Install internal spellchecker" off .include @@ -93,11 +86,6 @@ PLIST_SUB+= SPELLCHECK="" PLIST_SUB+= SPELLCHECK="@comment " .endif -# Avoid INDEX breakage when WITHOUT_MYSQL is defined. -USE_PHP?= yes - -.include "${PORTSDIR}/Mk/bsd.php.mk" - .if defined(WITH_LOCALCHECK) post-extract: @${CP} ${FILESDIR}/spellchecker.php ${WRKSRC} -- cgit v1.2.3