[23410] trunk/dports/www/php5/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sat Mar 31 03:20:59 PDT 2007
Revision: 23410
http://trac.macosforge.org/projects/macports/changeset/23410
Author: ryandesign at macports.org
Date: 2007-03-31 03:20:57 -0700 (Sat, 31 Mar 2007)
Log Message:
-----------
Now disable sqlite support by default, and only enable it if you ask for the +sqlite variant.
Modified Paths:
--------------
trunk/dports/www/php5/Portfile
Modified: trunk/dports/www/php5/Portfile
===================================================================
--- trunk/dports/www/php5/Portfile 2007-03-31 07:44:01 UTC (rev 23409)
+++ trunk/dports/www/php5/Portfile 2007-03-31 10:20:57 UTC (rev 23410)
@@ -4,7 +4,7 @@
name php5
version 5.2.1
-revision 1
+revision 2
categories lang php www
maintainers ryandesign at macports.org jwa at macports.org
@@ -59,6 +59,8 @@
--enable-wddx\
--with-zlib=${prefix} \
--without-mysql \
+ --without-sqlite \
+ --without-pdo-sqlite \
--with-libxml-dir=${prefix} \
--with-gettext=${prefix} \
--with-xml \
@@ -93,7 +95,6 @@
configure.env-append LDFLAGS=-L${prefix}/lib \
CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DBIND_8_COMPAT" \
LIBS=-ldl
- configure.args-append --enable-sqlite-utf8
# Work around php bug #40410; should be able to remove this once php 5.2.2 is released
patchfiles-append patch-posix.c.diff
}
@@ -102,14 +103,12 @@
configure.env-append LDFLAGS="-L${prefix}/lib" \
CPPFLAGS="-I${prefix}/include -no-cpp-precomp" \
LIBS=-ldl
- configure.args-append --enable-sqlite-utf8
# Work around php bug #40410; should be able to remove this once php 5.2.2 is released
patchfiles-append patch-posix.c.diff
}
platform darwin 8 {
configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
- configure.args-append --enable-sqlite-utf8
}
platform freebsd {
@@ -186,6 +185,20 @@
--with-pdo-pgsql=${prefix}/lib/postgresql82/bin
}
+# add sqlite support
+# note that standard sqlite support uses the built-in sqlite2 libraries
+# while pdo sqlite support uses the sqlite3 libraries from the sqlite3 port
+variant sqlite {
+ depends_lib-append port:sqlite3
+ configure.args-delete \
+ --without-sqlite \
+ --without-pdo-sqlite
+ configure.args-append \
+ --with-sqlite \
+ --with-pdo-sqlite=${prefix} \
+ --enable-sqlite-utf8
+}
+
# add semaphore, shared memory and IPC functions; see http://www.php.net/sem
variant ipc {
configure.args-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070331/fbc68e9e/attachment.html
More information about the macports-changes
mailing list