aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php5/scripts
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2001-04-23 12:25:26 +0800
committervanilla <vanilla@FreeBSD.org>2001-04-23 12:25:26 +0800
commit1563f1a86260f0f786401c988a342804fc700751 (patch)
tree2eb996c116b6bbb98744de93ca2c7d8ddd3f8eda /www/mod_php5/scripts
parentf0bde28cbd12dbce14f4e10b79c5d304da933fcf (diff)
downloadfreebsd-ports-gnome-1563f1a86260f0f786401c988a342804fc700751.tar.gz
freebsd-ports-gnome-1563f1a86260f0f786401c988a342804fc700751.tar.zst
freebsd-ports-gnome-1563f1a86260f0f786401c988a342804fc700751.zip
Fix postgresql7's new layout & include file problem.
PR: ports/26755 Submitted by: Palle Girgensohn <girgen@partitur.se>
Diffstat (limited to 'www/mod_php5/scripts')
-rw-r--r--www/mod_php5/scripts/configure.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php
index 585fb91eee0e..1f731e1745f4 100644
--- a/www/mod_php5/scripts/configure.php
+++ b/www/mod_php5/scripts/configure.php
@@ -113,8 +113,15 @@ while [ "$1" ]; do
;;
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
- echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}"
- if /usr/bin/ldd ${PREFIX}/bin/postgres 2> /dev/null | /usr/bin/grep -q "libssl"; then
+ if [ -x ${PREFIX}/pgsql/bin/postgres -a ! -x ${PREFIX}/bin/postgres ]; then
+ PGPREFIX=${PREFIX}/pgsql
+ else
+ PGPREFIX=${PREFIX}
+ echo "CFLAGS+=-I\${PREFIX}/include/pgsql"
+ fi
+ echo "PGPREFIX=${PGPREFIX}"
+ echo "CONFIGURE_ARGS+=--with-pgsql=\${PGPREFIX}"
+ if /usr/bin/ldd ${PGPREFIX}/bin/postgres 2> /dev/null | /usr/bin/grep -q "libssl"; then
echo "USE_OPENSSL= yes"
LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl"
fi