Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 15:36:14 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304361 - head/irc/ngircd
Message-ID:  <201209161536.q8GFaEcO019355@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Sun Sep 16 15:36:13 2012
New Revision: 304361
URL: http://svn.freebsd.org/changeset/ports/304361

Log:
  - use OPTIONS_DEFINE
  - fix SSL OPTIONS

Modified:
  head/irc/ngircd/Makefile

Modified: head/irc/ngircd/Makefile
==============================================================================
--- head/irc/ngircd/Makefile	Sun Sep 16 15:31:35 2012	(r304360)
+++ head/irc/ngircd/Makefile	Sun Sep 16 15:36:13 2012	(r304361)
@@ -26,58 +26,59 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 MAN5=		ngircd.conf.5
 MAN8=		ngircd.8
 
-OPTIONS=	TCP_WRAPPERS	"Enable TCP wrappers support"	on \
-		SYSLOG		"Enable SYSLOG support"		on \
-		ZLIB		"Enable ZLIB compression"	on \
-		IPV6		"Enable IPV6"			on \
-		OPENSSL		"Enable OpenSSL support"	off \
-		GNUTLS		"Enable GnuTLS support"		off \
-		IRCPLUS		"Enable IRC+ protocol"		on \
-		IDENT		"Enable IDENT (AUTH) protocol support"	off \
-		SNIFFER		"Enable IRC traffic sniffer"	off \
-		DEBUG		"Show additional debug output"	off
+OPTIONS_DEFINE=TCP_WRAPPERS SYSLOG ZLIB IPV6 OPENSSL GNUTLS IRCPLUS IDENT SNIFFER DEBUG
+OPTIONS_DEFAULT=TCP_WRAPPERS SYSLOG ZLIB IPV6 IRCPLUS
+NO_OPTIONS_SORT=yes
+TCP_WRAPPERS_DESC=Enable TCP wrappers support
+SYSLOG_DESC=Enable syslog() support
+ZLIB_DESC=Enable ZLIB compression
+IRCPLUS_DESC=Enable IRC+ protocol
+IDENT_DESC=Enable IDENT (AUTH) protocol support
+SNIFFER_DESC=Enable IRC traffic sniffer
+DEBUG_DESC=Show additional debug output
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if exists(/usr/include/tcpd.h) && !defined(WITHOUT_TCP_WRAPPERS)
 CONFIGURE_ARGS+=	--with-tcp-wrappers
 .endif
 
-.if defined(WITHOUT_SYSLOG)
+.if empty(PORT_OPTIONS:MSYSLOG)
 CONFIGURE_ARGS+=	--without-syslog
 .endif
 
-.if defined(WITHOUT_ZLIB)
+.if empty(PORT_OPTIONS:MZLIB)
 CONFIGURE_ARGS+=	--without-zlib
 .endif
 
-.if defined(WITH_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
 CONFIGURE_ARGS+=	--enable-ipv6
 .endif
 
-.if defined(WITH_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
 CONFIGURE_ARGS+=	--with-openssl
+USE_OPENSSL=yes
 .endif
 
-.if defined(WITH_GNUTLS)
+.if ${PORT_OPTIONS:MGNUTLS}
 CONFIGURE_ARGS+=	--with-gnutls
-USE_OPENSSL=yes
+LIB_DEPENDS+=		gnutls:${PORTSDIR}/security/gnutls
 .endif
 
-.if defined(WITHOUT_IRCPLUS)
+.if empty(PORT_OPTIONS:MIRCPLUS)
 CONFIGURE_ARGS+=	--disable-ircplus
 .endif
 
-.if defined(WITH_IDENT)
-LIB_DEPENDS+=		ident.0:${PORTSDIR}/security/libident
+.if ${PORT_OPTIONS:MIDENT}
+LIB_DEPENDS+=		ident:${PORTSDIR}/security/libident
 CONFIGURE_ARGS+=	--with-ident
 .endif
 
-.if defined(WITH_SNIFFER)
+.if ${PORT_OPTIONS:MSNIFFER}
 CONFIGURE_ARGS+=	--enable-sniffer
 .endif
 
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=	--enable-debug
 .endif
 
@@ -85,4 +86,4 @@ CONFIGURE_ARGS+=	--enable-debug
 MAKE_ARGS+=		NOPORTDOCS=yes
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209161536.q8GFaEcO019355>