From owner-svn-ports-all@FreeBSD.ORG Thu Jan 22 12:18:01 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F09D33C; Thu, 22 Jan 2015 12:18:01 +0000 (UTC) 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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2B76CB26; Thu, 22 Jan 2015 12:18:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0MCI1rU056063; Thu, 22 Jan 2015 12:18:01 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0MCI123056062; Thu, 22 Jan 2015 12:18:01 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201501221218.t0MCI123056062@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Thu, 22 Jan 2015 12:18:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r377651 - 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.18-1 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: Thu, 22 Jan 2015 12:18:01 -0000 Author: antoine Date: Thu Jan 22 12:18:00 2015 New Revision: 377651 URL: https://svnweb.freebsd.org/changeset/ports/377651 QAT: https://qat.redports.org/buildarchive/r377651/ Log: Add a ${opt}_USE_OFF option helper PR: 195817 Differential Revision: https://reviews.freebsd.org/D1581 Reviewed by: bapt, mat, jbeich With hat: portmgr Modified: head/Mk/bsd.options.mk Modified: head/Mk/bsd.options.mk ============================================================================== --- head/Mk/bsd.options.mk Thu Jan 22 12:01:05 2015 (r377650) +++ head/Mk/bsd.options.mk Thu Jan 22 12:18:00 2015 (r377651) @@ -99,6 +99,8 @@ # USE_FOO+= bar # If you need more than one option, you can do # FOO=bar,baz and you'll get USE_FOO=bar baz +# ${opt}_USE_OFF= FOO=bar When option is disabled, it will enable +# USE_FOO+= bar # # For each of: # ALL_TARGET CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS CONFLICTS_BUILD @@ -460,6 +462,12 @@ ${deptype}_DEPENDS+= ${${opt}_${deptype} . endif . endfor . else +. if defined(${opt}_USE_OFF) +. for option in ${${opt}_USE_OFF} +_u= ${option:C/=.*//g} +USE_${_u:tu}+= ${option:C/.*=//g:C/,/ /g} +. endfor +. endif . if defined(${opt}_CONFIGURE_ENABLE) . for iopt in ${${opt}_CONFIGURE_ENABLE} CONFIGURE_ARGS+= --disable-${iopt:C/=.*//}