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 + +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