diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-05-18 13:32:14 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-05-18 13:32:14 +0000 |
commit | cc299aa842bb50976e762f681478dbe594f65745 (patch) | |
tree | a0d99137be1fa335f85cb68822a85bcda316204a /eclass | |
parent | Fix starting of resin (bug #178149). (diff) | |
download | historical-cc299aa842bb50976e762f681478dbe594f65745.tar.gz historical-cc299aa842bb50976e762f681478dbe594f65745.tar.bz2 historical-cc299aa842bb50976e762f681478dbe594f65745.zip |
Tell PHP where the db.h is on FreeBSD
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php5_2-sapi.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/php5_2-sapi.eclass b/eclass/php5_2-sapi.eclass index 237715b43e45..ef05c74af9c9 100644 --- a/eclass/php5_2-sapi.eclass +++ b/eclass/php5_2-sapi.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php5_2-sapi.eclass,v 1.6 2007/05/12 04:59:41 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php5_2-sapi.eclass,v 1.7 2007/05/18 13:32:14 uberlord Exp $ # ======================================================================== # @@ -24,7 +24,7 @@ PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" -inherit flag-o-matic autotools toolchain-funcs libtool eutils phpconfutils php-common-r1 +inherit db-use flag-o-matic autotools toolchain-funcs libtool eutils phpconfutils php-common-r1 # set MY_PHP_P in the ebuild @@ -463,6 +463,11 @@ php5_2-sapi_src_compile() { my_conf="${my_conf} --enable-dba${shared}" fi + # Tell PHP where the db.h is on FreeBSD + if use berkdb ; then + append-cppflags "-I$(db_includedir)" + fi + # DBA drivers support phpconfutils_extension_with "cdb" "cdb" 0 phpconfutils_extension_with "db4" "berkdb" 0 |