--- Makefile.old Tue Aug 31 12:19:26 2004 +++ Makefile Tue Aug 31 12:16:04 2004 @@ -16,12 +16,28 @@ ${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