summaryrefslogtreecommitdiff
path: root/www/mod_vhs
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 10:01:59 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 10:01:59 +0000
commit8a51784050c568375753e5dca2173d7f8f1b3eb6 (patch)
treea09a16b1600a6515e11db81862fcd0fe5c5afc97 /www/mod_vhs
parent- Update to 1.18.1 (diff)
Convert to new options framework
Notes
Notes: svn path=/head/; revision=319846
Diffstat (limited to 'www/mod_vhs')
-rw-r--r--www/mod_vhs/Makefile30
1 files changed, 14 insertions, 16 deletions
diff --git a/www/mod_vhs/Makefile b/www/mod_vhs/Makefile
index 01661fa6a803..70baf1b04c82 100644
--- a/www/mod_vhs/Makefile
+++ b/www/mod_vhs/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mod_vhs
-# Date created: Sun Jul 25 2004
-# Whom: Xavier Beaudouin <kiwi@oav.net>
-#
+# Created by: Xavier Beaudouin <kiwi@oav.net>
# $FreeBSD$
-#
PORTNAME= mod_vhs
PORTVERSION= 1.1.0
@@ -36,40 +32,42 @@ AP_EXTRAS+= -DHAVE_MOD_PHP_SUPPORT
PORTDOCS= ChangeLog AUTHORS README README.logs README.mod_suphp WARNING \
README.phpopt THANKS WARNING WARNING.THREADS README.LDAP
-OPTIONS= LDAP "Enable mod_ldap support" on \
- DBD "Enable mod_dbd support" off \
- ITK "Enable mpm-itk support (needs a specific apache)" off \
- VDEBUG "Enable debug version (very verbose !)" off
+OPTIONS_DEFINE= LDAP DBD ITK VDEBUG DOCS
+OPTIONS_DEFAULT= LDAP
+LDAP_DESC= mod_ldap support
+DBD_DESC= mod_dbd support
+ITK_DESC= mpm-itk support (needs a specific apache)
+VDEBUG_DESC= debug version (very verbose !)
.include <bsd.port.options.mk>
### mod_vhs options
-.if defined(WITH_LDAP)
-.if defined(WITHOUT_DBD)
+.if ${PORT_OPTIONS:MLDAP}
+.if ! ${PORT_OPTIONS:MDBD}
AP_EXTRAS+= -DHAVE_LDAP_SUPPORT
.else
.error You cannot use LDAP and DBD at the same time.
.endif
.endif
-.if defined(WITH_DBD)
-.if defined(WITHOUT_LDAP)
+.if ${PORT_OPTIONS:MDBD}
+.if ! ${PORT_OPTIONS:MLDAP}
AP_EXTRAS+= -DHAVE_MOD_DBD_SUPPORT
.else
.error You cannot use LDAP and DBD at the same time.
.endif
.endif
-.if defined(WITH_ITK)
+.if ${PORT_OPTIONS:MITK}
AP_EXTRAS+= -DHAVE_MPM_ITK_SUPPORT
.endif
-.if defined(WITH_VDEBUG)
+.if ${PORT_OPTIONS:MVDEBUG}
AP_EXTRAS+= -DVH_DEBUG
.endif
post-install:
-.if !defined (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/