aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>