aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pear-Log
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2007-03-06 06:54:19 +0000
committerMark Linimon <linimon@FreeBSD.org>2007-03-06 06:54:19 +0000
commitbe4c6448a890a12891a93bbc158a66ec4e868e79 (patch)
tree8cbaf74b97ffda20f53930215deea45720b020a0 /sysutils/pear-Log
parent153a5ec176dc0b1a86f0eddd7cfb0ee8009b6c1f (diff)
downloadports-be4c6448a890a12891a93bbc158a66ec4e868e79.tar.gz
ports-be4c6448a890a12891a93bbc158a66ec4e868e79.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
Notes
Notes: svn path=/head/; revision=186641
Diffstat (limited to 'sysutils/pear-Log')
-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"