aboutsummaryrefslogtreecommitdiff
path: root/www/pear-HTTP_FloodControl
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-17 02:15:13 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-17 02:15:13 +0000
commit3bdf701a5c55426eb679205359bb384d7019a1a2 (patch)
tree2462f02d26b3d6c876b0b158f0a6aa557f06a219 /www/pear-HTTP_FloodControl
parent87b9f8cbd167accbbbbcf020b1dfed71e5f93278 (diff)
downloadports-3bdf701a5c55426eb679205359bb384d7019a1a2.tar.gz
ports-3bdf701a5c55426eb679205359bb384d7019a1a2.zip
Notes
Diffstat (limited to 'www/pear-HTTP_FloodControl')
-rw-r--r--www/pear-HTTP_FloodControl/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/www/pear-HTTP_FloodControl/Makefile b/www/pear-HTTP_FloodControl/Makefile
index 6f308c277c4d..2976c81d8034 100644
--- a/www/pear-HTTP_FloodControl/Makefile
+++ b/www/pear-HTTP_FloodControl/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: pear-HTTP_FloodControl
-# Date created: 22 Jan 2007
-# Whom: Ditesh Shashikant Gathani <ditesh@gathani.org>
-#
+# Created by: Ditesh Shashikant Gathani <ditesh@gathani.org>
# $FreeBSD$
-#
PORTNAME= HTTP_FloodControl
PORTVERSION= 0.1.1
@@ -22,28 +18,29 @@ FILES= FloodControl.php FloodControl/Container.php \
LATEST_LINK= pear-HTTP_FloodControl
DOCS= README LICENSE
-OPTIONS= DB "Enable PEAR::DB support" Off \
- MDB "Enable PEAR::MDB support" Off \
- MDB2 "Enable PEAR::MDB2 support" Off
+OPTIONS_DEFINE= PEAR_DB PEAR_MDB PEAR_MDB2
+PEAR_DB_DESC= PEAR::DB support
+PEAR_MDB_DESC= PEAR::MDB support
+PEAR_MDB2_DESC= PEAR::MDB2 support
post-extract:
${MKDIR} ${WRKSRC}/docs
${MV} ${WRKSRC}/README ${WRKSRC}/LICENSE ${WRKSRC}/docs
${MV} ${WRKDIR}/package2.xml ${WRKDIR}/package.xml
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_DB)
+.if ${PORT_OPTIONS:MPEAR_DB}
RUN_DEPENDS+= ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB
.endif
-.if defined(WITH_MDB)
+.if ${PORT_OPTIONS:MPEAR_MDB}
RUN_DEPENDS+= ${PEARDIR}/MDB.php:${PORTSDIR}/databases/pear-MDB
.endif
-.if defined(WITH_MDB2)
+.if ${PORT_OPTIONS:MPEAR_MDB2}
RUN_DEPENDS+= ${PEARDIR}/MDB2.php:${PORTSDIR}/databases/pear-MDB2
.endif
.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>