From 8a51784050c568375753e5dca2173d7f8f1b3eb6 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 4 Jun 2013 10:01:59 +0000 Subject: Convert to new options framework --- www/mod_vhs/Makefile | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'www/mod_vhs') 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 -# +# Created by: Xavier Beaudouin # $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 ### 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}/ -- cgit v1.2.3