From owner-svn-ports-all@FreeBSD.ORG Mon Nov 19 15:17:56 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B87B3CC0; Mon, 19 Nov 2012 15:17:56 +0000 (UTC) (envelope-from wxs@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 834418FC13; Mon, 19 Nov 2012 15:17:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJFHusS081488; Mon, 19 Nov 2012 15:17:56 GMT (envelope-from wxs@svn.freebsd.org) Received: (from wxs@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAJFHuJA081487; Mon, 19 Nov 2012 15:17:56 GMT (envelope-from wxs@svn.freebsd.org) Message-Id: <201211191517.qAJFHuJA081487@svn.freebsd.org> From: Wesley Shields Date: Mon, 19 Nov 2012 15:17:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307564 - head/net/libnids X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 15:17:56 -0000 Author: wxs Date: Mon Nov 19 15:17:56 2012 New Revision: 307564 URL: http://svnweb.freebsd.org/changeset/ports/307564 Log: Convert to new options. While here, drop the old libnet10 option. Feature safe: yes Modified: head/net/libnids/Makefile (contents, props changed) Modified: head/net/libnids/Makefile ============================================================================== --- head/net/libnids/Makefile Mon Nov 19 14:32:35 2012 (r307563) +++ head/net/libnids/Makefile Mon Nov 19 15:17:56 2012 (r307564) @@ -15,30 +15,32 @@ COMMENT= Network monitoring library with LICENSE= GPLv2 -OPTIONS= LIBNET "Include code requiring libnet" ON \ - LIBNET10 "Use the old libnet-1.0.x version" ON \ - GLIB2 "Use GLIB2 for multiprocessing support" ON +OPTIONS_DEFINE= LIBNET GLIB2 +LIBNET_DESC= "Use libnet 1.1.x" +GLIB2_DESC= "Use GLIB2 for multiprocessing support" +OPTIONS_DEFAULT= LIBNET GLIB2 WANT_GNOME= yes GNU_CONFIGURE= yes MAN3= libnids.3 -.include +.include -.if !defined(WITHOUT_LIBNET) -.if !defined(WITHOUT_LIBNET10) -BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config +.if ${PORT_OPTIONS:MDOCS} +PLIST_SUB+= PORTDOCS="" .else +PLIST_SUB+= PORTDOCS="@comment " +.endif + +.if ${PORT_OPTIONS:MLIBNET} BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config -.endif .else CONFIGURE_ARGS+= --disable-libnet .endif -.if !defined(WITHOUT_GLIB2) +.if ${PORT_OPTIONS:MGLIB2} USE_GNOME+= glib20 .else CONFIGURE_ARGS+= --disable-libglib @@ -56,11 +58,11 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/src/libnids.3 ${PREFIX}/man/man3 post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for i in README doc/* ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}/ .endfor .endif -.include +.include