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 | 71fded14edc92fa4fba7099e44e5548e907c3506 (patch) | |
tree | b82f0f0a7447cfd6d55e935845c15735e10df8e2 /eclass/php5_2-sapi.eclass | |
parent | Fix starting of resin (bug #178149). (diff) | |
download | gentoo-2-71fded14edc92fa4fba7099e44e5548e907c3506.tar.gz gentoo-2-71fded14edc92fa4fba7099e44e5548e907c3506.tar.bz2 gentoo-2-71fded14edc92fa4fba7099e44e5548e907c3506.zip |
Tell PHP where the db.h is on FreeBSD
Diffstat (limited to 'eclass/php5_2-sapi.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 |