From owner-svn-ports-head@FreeBSD.ORG Thu Dec 6 10:36:51 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8834288D; Thu, 6 Dec 2012 10:36:51 +0000 (UTC) (envelope-from rene@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 6A3CC8FC13; Thu, 6 Dec 2012 10:36:51 +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 qB6Aap2p021254; Thu, 6 Dec 2012 10:36:51 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qB6Aapmm021253; Thu, 6 Dec 2012 10:36:51 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201212061036.qB6Aapmm021253@svn.freebsd.org> From: Rene Ladan Date: Thu, 6 Dec 2012 10:36:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308379 - head/net/xorp-devel 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: Thu, 06 Dec 2012 10:36:51 -0000 Author: rene Date: Thu Dec 6 10:36:50 2012 New Revision: 308379 URL: http://svnweb.freebsd.org/changeset/ports/308379 Log: - Strip Makefile headers [1] - Convert to optionsNG [1] - Use positive logic for options - Strip library version numbers PR: ports/172438 [1] Submitted by: Michael Gmelin Feature safe: yes Modified: head/net/xorp-devel/Makefile (contents, props changed) Modified: head/net/xorp-devel/Makefile ============================================================================== --- head/net/xorp-devel/Makefile Thu Dec 6 10:28:28 2012 (r308378) +++ head/net/xorp-devel/Makefile Thu Dec 6 10:36:50 2012 (r308379) @@ -1,9 +1,5 @@ -# New ports collection makefile for: xorp -# Date created: 22nd September 2006 -# Whom: Bruce M Simpson -# +# Created by: Bruce M Simpson # $FreeBSD$ -# PORTNAME= xorp-devel PORTVERSION= 2009120801 @@ -18,8 +14,8 @@ COMMENT= Open source network routing pla # Uses libcurses, libcrypto, librt from base system. BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:${PORTSDIR}/devel/boost-libs -LIB_DEPENDS= boost_regex.4:${PORTSDIR}/devel/boost-libs \ - pcap.1:${PORTSDIR}/net/libpcap +LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost-libs \ + pcap:${PORTSDIR}/net/libpcap CONFLICTS= xorp-1* @@ -31,12 +27,12 @@ USE_SCONS= yes #USE_OPENSSL= yes MAKE_JOBS_SAFE= defined -OPTIONS= \ - OPTIMIZE "Build with optimization" On \ - ORIGIN "Use ORIGIN with shared libraries" On \ - SHARED "Build with shared libraries" On \ - STRIP "Strip binaries before installing" On \ - TCP_RPC "Use TCP as RPC transport (defaults to AF_LOCAL)" Off +OPTIONS_DEFINE= OPTIMIZE ORIGIN SHARED STRIP TCP_RPC +OPTIONS_DEFAULT= OPTIMIZE ORIGIN SHARED STRIP +OPTIMIZE_DESC= Build with optimization +ORIGIN_DESC= Use ORIGIN with shared libraries +SHARED_DESC= Build with shared libraries +TCP_RPC_DESC= Use TCP as RPC transport (defaults to AF_LOCAL) # # To roll snapshot: as bms: make BOOTSTRAP=defined fetch @@ -57,40 +53,40 @@ do-fetch: .endif .endif # defined(BOOTSTRAP) -.include +.include XORP_GROUP= xorp USE_RC_SUBR= xorp SCONS_ARGS+= prefix=${PREFIX} -.if defined(WITHOUT_OPTIMIZE) -SCONS_ARGS+= optimize=no -.else +.if ${PORT_OPTIONS:MOPTIMIZE} SCONS_ARGS+= optimize=yes +.else +SCONS_ARGS+= optimize=no .endif -.if defined(WITHOUT_SHARED) -SCONS_ARGS+= shared=false -PLIST_SUB+= XORP_SHLIB="@comment " -.else +.if ${PORT_OPTIONS:MSHARED} SCONS_ARGS+= shared=true PLIST_SUB+= XORP_SHLIB="" USE_LDCONFIG= ${PREFIX}/lib/xorp/lib -. if defined (WITHOUT_ORIGIN) -SCONS_ARGS+= origin=false -. else +. if ${PORT_OPTIONS:MORIGIN} SCONS_ARGS+= origin=true +. else +SCONS_ARGS+= origin=false . endif +.else +SCONS_ARGS+= shared=false +PLIST_SUB+= XORP_SHLIB="@comment " .endif -.if defined(WITHOUT_STRIP) -SCONS_ARGS+= strip=false -.else +.if ${PORT_OPTIONS:MSTRIP} SCONS_ARGS+= strip=true +.else +SCONS_ARGS+= strip=false .endif -.if defined(WITH_TCP_RPC) +.if ${PORT_OPTIONS:MTCP_RPC} SCONS_ARGS+= transport=tcp .else SCONS_ARGS+= transport=local @@ -103,4 +99,4 @@ BROKEN= Does not compile on sparc64 post-install: ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.include +.include