aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2007-03-06 14:54:19 +0800
committerlinimon <linimon@FreeBSD.org>2007-03-06 14:54:19 +0800
commit144d68c6e6f6189d13ff54c84b1b9055aa8087da (patch)
tree9dfdb42ead5000a9895d96f1ce7060b2d2c23421 /sysutils
parentc9f8aacf34bae745915c1c9480ba3f9922f19a67 (diff)
downloadfreebsd-ports-gnome-144d68c6e6f6189d13ff54c84b1b9055aa8087da.tar.gz
freebsd-ports-gnome-144d68c6e6f6189d13ff54c84b1b9055aa8087da.tar.zst
freebsd-ports-gnome-144d68c6e6f6189d13ff54c84b1b9055aa8087da.zip
Use the new facility of bsd.port.mk to be able to simplify the interaction
of USE_PHP and OPTIONS. PR: ports/106557 Submitted by: ale Hat: portmgr
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pear-Log/Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/sysutils/pear-Log/Makefile b/sysutils/pear-Log/Makefile
index 2cfddee8fc9b..8eafad8cb464 100644
--- a/sysutils/pear-Log/Makefile
+++ b/sysutils/pear-Log/Makefile
@@ -37,15 +37,8 @@ _SQLSDIR= misc
LATEST_LINK= pear-Log
OPTIONS= PEAR_DB "PEAR::DB support" off \
- PEAR_MDB2 "PEAR::MDB2 support" off
-
-.if exists(${LOCALBASE}/etc/php.conf)
-.include "${LOCALBASE}/etc/php.conf"
-.endif
-
-.if defined(PHP_VER) && ${PHP_VER} == 5
-OPTIONS+= PHP_SQLITE "PHP sqlite support" off
-.endif
+ PEAR_MDB2 "PEAR::MDB2 support" off \
+ PHP_SQLITE "PHP sqlite support (php5 only)" off
.include <bsd.port.pre.mk>
@@ -58,7 +51,7 @@ BUILD_DEPENDS+= ${PEARDIR}/MDB2.php:${PORTSDIR}/databases/pear-MDB2
.endif
.if defined(WITH_PHP_SQLITE)
-BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/sqlite.so:${PORTSDIR}/databases/php5-sqlite
+USE_PHP+= sqlite
.endif
.include "${PORTSDIR}/devel/pear/bsd.pear.mk"