From owner-svn-ports-all@FreeBSD.ORG Thu Aug 1 12:32:52 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C2C5BF0; Thu, 1 Aug 2013 12:32:52 +0000 (UTC) (envelope-from mat@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 96B952F19; Thu, 1 Aug 2013 12:32:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r71CWqiR090016; Thu, 1 Aug 2013 12:32:52 GMT (envelope-from mat@svn.freebsd.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r71CWqe3090015; Thu, 1 Aug 2013 12:32:52 GMT (envelope-from mat@svn.freebsd.org) Message-Id: <201308011232.r71CWqe3090015@svn.freebsd.org> From: Mathieu Arnold Date: Thu, 1 Aug 2013 12:32:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324101 - 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: Thu, 01 Aug 2013 12:32:52 -0000 Author: mat Date: Thu Aug 1 12:32:52 2013 New Revision: 324101 URL: http://svnweb.freebsd.org/changeset/ports/324101 Log: Document the new bsd.options.mk knobs. PR: ports/180949 Submitted by: mat Approved by: bapt Modified: head/Mk/bsd.options.mk (contents, props changed) Modified: head/Mk/bsd.options.mk ============================================================================== --- head/Mk/bsd.options.mk Thu Aug 1 11:57:14 2013 (r324100) +++ head/Mk/bsd.options.mk Thu Aug 1 12:32:52 2013 (r324101) @@ -68,6 +68,38 @@ # # WITH - Set options from the command line # WITHOUT - Unset options from the command line +# +# +# The following knobs are there to simplfy the handling of OPTIONS in simple +# cases : +# +# OPTIONS_SUB When defined it will add to PLIST_SUB: +# Option enabled ${opt}="" +# Option disabled ${opt}="@comment " +# +# ${opt}_CONFIGURE_ON When option is enabled, it will add its content to +# the CONFIGURE_ARGS. +# ${opt}_CONFIGURE_OFF When option is disabled, it will add its content to +# the CONFIGURE_ARGS. +# ${opt}_CONFIGURE_ENABLE Will add to CONFIGURE_ARGS: +# Option enabled --enable-${content} +# Option disabled --disable-${content} +# ${opt}_CONFIGURE_WITH Will add to CONFIGURE_ARGS: +# Option enabled --with-${content} +# Option disabled --without-${content} +# +# ${opt}_CMAKE_ON When option is enabled, it will add its content to +# the CMAKE_ARGS. +# ${opt}_CMAKE_OFF When option is disabled, it will add its content to +# the CMAKE_ARGS. +# +# For each of CFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES, +# defining ${opt}_${variable} will add it to the actual variable when the +# option is enabled. +# +# For each of the depends target PKG EXTRACT PATCH FETCH BUILD LIB RUN, +# defining ${opt}_${deptype}_DEPENDS will add it to the actual dependency when +# the option is enabled. ## # Set all the options available for the ports, beginning with the