From owner-svn-ports-all@FreeBSD.ORG Mon Jul 29 07:01:21 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5E37695B; Mon, 29 Jul 2013 07:01:21 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B95221A9; Mon, 29 Jul 2013 07:01:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6T71Lqa080014; Mon, 29 Jul 2013 07:01:21 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6T71LRs080013; Mon, 29 Jul 2013 07:01:21 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201307290701.r6T71LRs080013@svn.freebsd.org> From: Baptiste Daroussin Date: Mon, 29 Jul 2013 07:01:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r323867 - head/Mk 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, 29 Jul 2013 07:01:21 -0000 Author: bapt Date: Mon Jul 29 07:01:20 2013 New Revision: 323867 URL: http://svnweb.freebsd.org/changeset/ports/323867 Log: Add new ${OPT}_CONFIGURE_WITH option help it will handle the --with/--without configure argument dancing based on the value of the OPTION ${OPT} Requested by: mandree Modified: head/Mk/bsd.options.mk Modified: head/Mk/bsd.options.mk ============================================================================== --- head/Mk/bsd.options.mk Mon Jul 29 06:52:46 2013 (r323866) +++ head/Mk/bsd.options.mk Mon Jul 29 07:01:20 2013 (r323867) @@ -351,6 +351,9 @@ PLIST_SUB:= ${PLIST_SUB} ${opt}="@commen . if defined(${opt}_CONFIGURE_ENABLE) CONFIGURE_ARGS+= --enable-${${opt}_CONFIGURE_ENABLE} . endif +. if defined(${opt}_CONFIGURE_WITH) +CONFIGURE_ARGS+= --with-${${opt}_CONFIGURE_WITH} +. endif . if defined(${opt}_CONFIGURE_ON) CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ON} . endif @@ -371,6 +374,9 @@ ${deptype}_DEPENDS+= ${${opt}_${deptype} . if defined(${opt}_CONFIGURE_ENABLE) CONFIGURE_ARGS+= --disable-${${opt}_CONFIGURE_ENABLE} . endif +. if defined(${opt}_CONFIGURE_WITH) +CONFIGURE_ARGS+= --without-${${opt}_CONFIGURE_WITH} +. endif . if defined(${opt}_CONFIGURE_OFF) CONFIGURE_ARGS+= ${${opt}_CONFIGURE_OFF} . endif