aboutsummaryrefslogtreecommitdiff
path: root/databases/pear-DB_DataObject
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-09-02 11:52:00 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-09-02 11:52:00 +0000
commit06662bc7be978e5bbff0435ae90990c7d8295a8d (patch)
tree52e0284a5bd0d777e012021439cdf819dc990e14 /databases/pear-DB_DataObject
parent047ed8a84aab8cd085cc296acfa4154e090e5f22 (diff)
downloadports-06662bc7be978e5bbff0435ae90990c7d8295a8d.tar.gz
ports-06662bc7be978e5bbff0435ae90990c7d8295a8d.zip
Update port: databases/pear-DB_DataObject
+ added PHP dependency (> 4.2.0) + added option to install PEAR::Validate PR: ports/71200 Submitted by: Antônio Carlos Venâncio Júnior <antonio@php.net>
Notes
Notes: svn path=/head/; revision=117924
Diffstat (limited to 'databases/pear-DB_DataObject')
-rw-r--r--databases/pear-DB_DataObject/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/pear-DB_DataObject/Makefile b/databases/pear-DB_DataObject/Makefile
index 8413f01fa6ba..ebe6650c3c88 100644
--- a/databases/pear-DB_DataObject/Makefile
+++ b/databases/pear-DB_DataObject/Makefile
@@ -16,12 +16,28 @@ BUILD_DEPENDS= ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date
RUN_DEPENDS= ${BUILD_DEPENDS}
+USE_PHP= yes
+
CATEGORY= DB
FILES= DataObject.php DataObject/Cast.php DataObject/Error.php \
DataObject/Generator.php DataObject/createTables.php
DOCS= example.ini
+LATEST_LINK= pear-DB_DataObject
+OPTIONS= PEAR_VALIDATE "PEAR::Validate support" off
+
.include <bsd.port.pre.mk>
+
+PHP_VERS= ${PHP_VERSION:S/.//g}
+
+.if defined(PHP_VERS) && ${PHP_VERS} < 420
+BROKEN= "You need PHP 4.2.0 or later to install PEAR::DB_DataObject"
+.endif
+
+.if defined(WITH_PEAR_VALIDATE)
+BUILD_DEPENDS+= ${PEARDIR}/Validate.php:${PORTSDIR}/devel/pear-Validate
+.endif
+
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>