From 27d44119e7e106f32a4b4b25539a57a35cc68823 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 28 Apr 2013 20:01:07 +0000 Subject: Convert left sysutils ports to new options framework --- sysutils/apachetop/Makefile | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'sysutils/apachetop') diff --git a/sysutils/apachetop/Makefile b/sysutils/apachetop/Makefile index 247d30c792ef..afab74451eda 100644 --- a/sysutils/apachetop/Makefile +++ b/sysutils/apachetop/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: apachetop -# Date created: 30 Sep 2003 -# Whom: Sebastian Yepes F. -# +# Created by: Sebastian Yepes F. # $FreeBSD$ -# PORTNAME= apachetop PORTVERSION= 0.12.6 @@ -21,23 +17,22 @@ GNU_CONFIGURE= yes MAN1= apachetop.1 PLIST_FILES= bin/apachetop -OPTIONS= ADNS "Asynchronous-capable DNS support" off \ - FAM "File Alteration Monitor support" off \ - PCRE "Perl Compatible Regular Expressions support" off +OPTIONS_DEFINE= ADNS FAM PCRE +ADNS_DESC= Asynchronous-capable DNS support -.include +.include -.if defined(WITH_ADNS) +.if ${PORT_OPTIONS:MADNS} LIB_DEPENDS+= adns.1:${PORTSDIR}/dns/adns CONFIGURE_ARGS+=--with-adns=${LOCALBASE} .endif -.if defined(WITH_FAM) +.if ${PORT_OPTIONS:MFAM} LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam CONFIGURE_ARGS+=--with-fam=${LOCALBASE} .endif -.if defined(WITH_PCRE) +.if ${PORT_OPTIONS:MPCRE} LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre CONFIGURE_ARGS+=--with-pcre=${LOCALBASE} .endif @@ -49,4 +44,4 @@ post-patch: ${WRKSRC}/src/log.* @cd ${WRKSRC} && ${TOUCH} -r configure.ac aclocal.m4 stamp-h.in -.include +.include -- cgit v1.2.3