summaryrefslogtreecommitdiff
path: root/www/mod_php5/scripts
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>1999-01-14 21:22:29 +0000
committerDirk Froemberg <dirk@FreeBSD.org>1999-01-14 21:22:29 +0000
commit35ba9be9a534990941acbfb19b6c347ca54c1e83 (patch)
tree30ba7104084a1f7f97c5a99e590f3d0dddde9ec4 /www/mod_php5/scripts
parentUpgrade to 0.6, and it may not work fine with gnomelibs-0.99.3. (diff)
Change the dependencies to MySQL:
The default is mysql322 now, but take mysql321 if it is installed. (mysql321 installs a static libmysqlclient.a only, mysql322 installs a static and shared version of the library. Note that the build dependency to mysql321 is a no op actually. It is in there to improve understanding(?).)
Notes
Notes: svn path=/head/; revision=16048
Diffstat (limited to 'www/mod_php5/scripts')
-rw-r--r--www/mod_php5/scripts/configure.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php
index df97a974aefe..56b3b2544021 100644
--- a/www/mod_php5/scripts/configure.php
+++ b/www/mod_php5/scripts/configure.php
@@ -59,7 +59,11 @@ while [ "$1" ]; do
echo "PHP3_CONF_ARGS+= --with-zlib" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
;;
\"MySQL\")
- echo "BUILD_DEPENDS+= mysql:\${PORTSDIR}/databases/mysql321" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ echo ".if !exists(\${PREFIX}/lib/mysql/libmysqlclient.a) || exists(\${PREFIX}/lib/mysql/libmysqlclient.so)" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ echo "LIB_DEPENDS+= mysqlclient.5:\${PORTSDIR}/databases/mysql322" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ echo ".else" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ echo "BUILD_DEPENDS+= \${PREFIX}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql321" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ echo ".endif" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
echo "PHP3_CONF_ARGS+= --with-mysql=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
;;
\"PostgreSQL\")