From 5a297c8052c40e35bd3cb6347a474d6b045ec2bf Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 18 Jun 2008 23:21:59 +0000 Subject: [PATCH] - Add WITH_SQLITE_PORT knob for php5-pdo_sqlite port, to use system-wide sqlite3 instead of bundled one PR: ports/115800 Submitted by: Maxim Khitrov Approved by: maintainer timeout (ale; 9 months) --- lang/php5/Makefile.ext | 5 +++++ lang/php53/Makefile.ext | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext index b1836720a42e..5490e2fe2342 100644 --- a/lang/php5/Makefile.ext +++ b/lang/php5/Makefile.ext @@ -304,7 +304,12 @@ USE_PHP_BUILD= yes .endif .if ${PHP_MODNAME} == "pdo_sqlite" +. if defined(WITH_SQLITE_PORT) +USE_SQLITE= yes +CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} +. else CONFIGURE_ARGS+=--with-pdo-sqlite +. endif USE_PHP= pdo USE_PHP_BUILD= yes diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext index b1836720a42e..5490e2fe2342 100644 --- a/lang/php53/Makefile.ext +++ b/lang/php53/Makefile.ext @@ -304,7 +304,12 @@ USE_PHP_BUILD= yes .endif .if ${PHP_MODNAME} == "pdo_sqlite" +. if defined(WITH_SQLITE_PORT) +USE_SQLITE= yes +CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} +. else CONFIGURE_ARGS+=--with-pdo-sqlite +. endif USE_PHP= pdo USE_PHP_BUILD= yes