Patch: lang/php5 (pdo_sqlite extension)
Maxim Khitrov
mkhitrov at gmail.com
Fri Aug 24 10:45:44 PDT 2007
Hello,
I sent this patch to the maintainer of lang/php5 port, but did not
receive a response. Was advised to send an e-mail to ports@ instead.
This patch adds a knob to databases/php5-pdo_sqlite port called
WITH_SQLITE_PORT. When set, instead of compiling the bundled version
of sqlite library, pdo_sqlite extension will use the shared one from
the databases/sqlite3. The port is usually more up to date, so this is
convenient for people who need to do development and testing with
newer sqlite versions.
Thanks,
Maxim Khitrov
--- Makefile.ext.orig Thu Aug 16 08:56:41 2007
+++ Makefile.ext Thu Aug 16 09:00:20 2007
@@ -305,7 +305,12 @@
.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
More information about the freebsd-ports
mailing list