From 55a671367ca463970609c1f62728c0aa7891c8b7 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 23 Dec 2005 10:30:27 +0000 Subject: [PATCH] - Improved PHP version checking method - Removed mysql dependency from php dependency list - should be chosen from OPTIONS PR: ports/90824 Submitted by: maintainer --- www/phpwiki13/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/phpwiki13/Makefile b/www/phpwiki13/Makefile index 62520b390b6a..a9cf1a2b2ae4 100644 --- a/www/phpwiki13/Makefile +++ b/www/phpwiki13/Makefile @@ -7,7 +7,7 @@ PORTNAME= phpwiki PORTVERSION= 1.3.11p1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= phpwiki @@ -18,7 +18,7 @@ COMMENT= A PHP WikiWikiWeb CONFLICTS+= phpwiki-1.2* LATEST_LINK= phpwiki13 -USE_PHP= ctype pcre posix session tokenizer xml zlib mysql +USE_PHP= ctype pcre posix session tokenizer xml zlib NO_BUILD= YES PHP4_PORT?= www/mod_php4 @@ -35,6 +35,10 @@ OPTIONS= MYSQL "Use MySQL backend" on \ PGSQL "Use PostgreSQL backend" off \ DB4 "Use Berkeley DB4 backend" off +.if exists(${LOCALBASE}/etc/php.conf) +.include "${LOCALBASE}/etc/php.conf" +.endif + .if defined(PHP_VER) && ${PHP_VER} == 5 OPTIONS+= SQLITE "Use SQLite backend" off .endif