From owner-svn-ports-head@FreeBSD.ORG Fri May 24 05:47:17 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 89B70703; Fri, 24 May 2013 05:47:17 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7D640D0F; Fri, 24 May 2013 05:47:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4O5lGFs064091; Fri, 24 May 2013 05:47:16 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4O5lG4X064090; Fri, 24 May 2013 05:47:16 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201305240547.r4O5lG4X064090@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 24 May 2013 05:47:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r318916 - head/mail/rspamd X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2013 05:47:17 -0000 Author: bapt Date: Fri May 24 05:47:16 2013 New Revision: 318916 URL: http://svnweb.freebsd.org/changeset/ports/318916 Log: Convert to new options framework While here add missing dependency on pkgconf Modified: head/mail/rspamd/Makefile Modified: head/mail/rspamd/Makefile ============================================================================== --- head/mail/rspamd/Makefile Fri May 24 00:29:09 2013 (r318915) +++ head/mail/rspamd/Makefile Fri May 24 05:47:16 2013 (r318916) @@ -14,9 +14,10 @@ LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pc gmime-2.0:${PORTSDIR}/mail/gmime2 \ event-1.4:${PORTSDIR}/devel/libevent -OPTIONS= RSPAMD_GPERF "Enable google perf-tools profiling" off \ - RSPAMD_JUDY "Enable Judy arrays usage for performance" off \ - RSPAMD_REDIRECTOR "Install HTTP redirector" off +OPTIONS_DEFINE= GPERF JUDY REDIRECTOR +GPERF_DESC= google perf-tools profiling +JUDY_DESC= Judy arrays usage for performance +REDIRECTOR_DESC= Install HTTP redirector USE_RC_SUBR= rspamd @@ -25,7 +26,7 @@ PLIST_SUB+= ETCDIR=etc/rspamd \ CMAKE_ARGS+= -DETC_PREFIX=${PREFIX}/etc -DPREFIX=${PREFIX} \ -DBUILD_PORT=yes -USES= cmake gettext iconv +USES= cmake gettext iconv pkgconfig USE_LDCONFIG= yes USE_GNOME= glib20 @@ -36,18 +37,18 @@ USE_OPENSSL= yes MAN8= rspamd.8 MAN1= rspamc.1 -.include +.include -.if defined(WITH_RSPAMD_GPERF) +.if ${PORT_OPTIONS:MGPERF} CMAKE_ARGS+= -DENABLE_GPERF_TOOLS=ON LIB_DEPENDS+= profiler.1:${PORTSDIR}/devel/google-perftools .endif -.if defined(WITH_RSPAMD_JUDY) +.if ${PORT_OPTIONS:MJUDY} LIB_DEPENDS+= Judy:${PORTSDIR}/devel/judy .endif -.if defined(WITH_RSPAMD_REDIRECTOR) +.if ${PORT_OPTIONS:MREDIRECTOR} USE_PERL5= yes CMAKE_ARGS+= -DENABLE_REDIRECTOR=ON PLIST_SUB+= REDIRECTOR="" @@ -68,4 +69,4 @@ MAN1= rspamc.1 PLIST_SUB+= REDIRECTOR="@comment " .endif -.include +.include