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