From 4aa80a5750d09dfd5ff132394c524eebf723b5a9 Mon Sep 17 00:00:00 2001 From: Dirk Froemberg Date: Wed, 5 Feb 2003 14:13:21 +0000 Subject: Help "make describe" to find dependencies properly. Requested by: kris --- www/mod_php4/Makefile | 8 ++++++++ www/mod_php4/scripts/configure.php | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'www/mod_php4') diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile index 22cdf24d695d..b767a45d23d6 100644 --- a/www/mod_php4/Makefile +++ b/www/mod_php4/Makefile @@ -99,4 +99,12 @@ post-clean: .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif +# XXX: +# Has to be kept in sync with the defaults in configure.php +.ifndef(WITHOUT_MYSQL) +.ifmake describe +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +.endif +.endif + .include diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index 2230696ea58d..6729ade0210e 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -166,6 +166,7 @@ while [ "$1" ]; do \"MySQL\") echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client" echo "CONFIGURE_ARGS+=--with-mysql=\${LOCALBASE}" + MYSQL=1 ;; \"PostgreSQL\") echo "POSTGRESQL_PORT?= databases/postgresql7" @@ -363,3 +364,7 @@ done if [ "${LIBS}" ]; then echo "CONFIGURE_ENV+= LIBS='${LIBS}'" fi + +if [ -z "${MYSQL}" ]; then + echo "WITHOUT_MYSQL= 1" +fi -- cgit v1.2.3