From owner-svn-doc-all@FreeBSD.ORG Tue Jan 28 19:21:14 2014 Return-Path: Delivered-To: svn-doc-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 ESMTPS id C14F64DD; Tue, 28 Jan 2014 19:21:14 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9371710AF; Tue, 28 Jan 2014 19:21:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0SJLEqs033910; Tue, 28 Jan 2014 19:21:14 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0SJLEZs033909; Tue, 28 Jan 2014 19:21:14 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201401281921.s0SJLEZs033909@svn.freebsd.org> From: Rene Ladan Date: Tue, 28 Jan 2014 19:21:14 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43682 - head/en_US.ISO8859-1/books/porters-handbook X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jan 2014 19:21:14 -0000 Author: rene Date: Tue Jan 28 19:21:14 2014 New Revision: 43682 URL: http://svnweb.freebsd.org/changeset/doc/43682 Log: Document two new option helpers: - OPT_TYPE_DEPENDS_OFF to add a TYPE_DEPENDS when OPT is off - OPT_FLAG_OFF=VAL to add the VAL to FLAG when OPT is off Submitted by: mat Reviewed by: mat Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Tue Jan 28 17:38:33 2014 (r43681) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Tue Jan 28 19:21:14 2014 (r43682) @@ -4858,6 +4858,24 @@ USES+= gmake CFLAGS+= -DTEST .endif + If X_ABOVEVARIABLE_OFF is set then a + flag ABOVEVARIABLE will be automatically + set when option X is not selected. For + example: + + OPTIONS_DEFINE= OPT1 +OPT1_USES_OFF=gmake + + is equivalent to: + + OPTIONS_DEFINE= OPT1 + +.include <bsd.port.options.mk> + +.if ! ${PORT_OPTIONS:MOPT1} +USES+= gmake +.endif + For any of the following dependency type: @@ -4907,6 +4925,24 @@ OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/de .if ${PORT_OPTIONS:MOPT1} LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a .endif + + If X_ABOVEVARIABLE_OFF is set then a + dependency of type ABOVEVARIABLE will be + added when option X is not selected. For + example: + + OPTIONS_DEFINE= OPT1 +OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR}/devel/a + + is equivalent to: + + OPTIONS_DEFINE= OPT1 + +.include <bsd.port.options.mk> + +. if ! ${PORT_OPTIONS:MOPT1} +LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a +.endif