From owner-svn-doc-all@FreeBSD.ORG Thu Feb 27 18:32:13 2014 Return-Path: Delivered-To: svn-doc-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 ESMTPS id 6DA1AD56; Thu, 27 Feb 2014 18:32:13 +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 4E6B716D2; Thu, 27 Feb 2014 18:32:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1RIWDh7006319; Thu, 27 Feb 2014 18:32:13 GMT (envelope-from mat@svn.freebsd.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1RIWDDL006318; Thu, 27 Feb 2014 18:32:13 GMT (envelope-from mat@svn.freebsd.org) Message-Id: <201402271832.s1RIWDDL006318@svn.freebsd.org> From: Mathieu Arnold Date: Thu, 27 Feb 2014 18:32:13 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44089 - head/en_US.ISO8859-1/books/porters-handbook/makefiles 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: Thu, 27 Feb 2014 18:32:13 -0000 Author: mat (ports committer) Date: Thu Feb 27 18:32:12 2014 New Revision: 44089 URL: http://svnweb.freebsd.org/changeset/doc/44089 Log: Split up the Options Helpers section into subsections. Sponsored by: Absolight Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Thu Feb 27 18:05:03 2014 (r44088) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Thu Feb 27 18:32:12 2014 (r44089) @@ -3630,6 +3630,9 @@ CONFIGURE_ARGS+= --disable-foo There are some macros to help simplify conditional values which differ based on the options set. + + OPTIONS_SUB + If OPTIONS_SUB is set to yes then each of the options added to OPTIONS_DEFINE will be added to @@ -3649,6 +3652,10 @@ PLIST_SUB+= OPT1="" NO_OPT1="@comment " .else PLIST_SUB+= OPT1="@comment " NO_OPT1="" .endif + + + + X_CONFIGURE_ENABLE If X_CONFIGURE_ENABLE is set then --enable-${X_CONFIGURE_ENABLE} or @@ -3670,6 +3677,10 @@ CONFIGURE_ARGS+= --enable-test .else CONFIGURE_ARGS+= --disable-test .endif + + + + X_CONFIGURE_WITH If X_CONFIGURE_WITH is set then --with-${X_CONFIGURE_WITH} or @@ -3691,6 +3702,10 @@ CONFIGURE_ARGS+= --with-test .else CONFIGURE_ARGS+= --without-test .endif + + + + X_CONFIGURE_ON If X_CONFIGURE_ON is set then its value will be appended to CONFIGURE_ARGS @@ -3709,6 +3724,10 @@ OPT1_CONFIGURE_ON= --add-test + + + + X_CONFIGURE_OFF If X_CONFIGURE_OFF is set then its value will be appended to CONFIGURE_ARGS @@ -3727,6 +3746,10 @@ OPT1_CONFIGURE_OFF= --no-test + + + + X_CMAKE_ON If X_CMAKE_ON is set then its value will be appended to CMAKE_ARGS depending on @@ -3745,6 +3768,10 @@ OPT1_CMAKE_ON= -DTEST:BOOL=true + + + + X_CMAKE_OFF If X_CMAKE_OFF is set then its value will be appended to CMAKE_ARGS depending on @@ -3763,6 +3790,10 @@ OPT1_CMAKE_OFF= -DTEST:BOOL=false + + + + Generic Variables Replacement For any of the following variables: @@ -3840,6 +3871,9 @@ CMAKE_ARGS+= -DTEST:BOOL=false + + X_ABOVEVARIABLE + If X_ABOVEVARIABLE is defined then its value will be appended to ABOVEVARIABLE depending on the status of @@ -3859,6 +3893,10 @@ OPT1_CFLAGS= -DTEST USES+= gmake CFLAGS+= -DTEST .endif + + + + X_ABOVEVARIABLE_OFF If X_ABOVEVARIABLE_OFF is set then a flag ABOVEVARIABLE will be automatically @@ -3878,6 +3916,12 @@ OPT1_USES_OFF=gmake USES+= gmake .endif + + + + + Dependencies + For any of the following dependency type: @@ -3910,6 +3954,9 @@ USES+= gmake + + X_ABOVEVARIABLE + If X_ABOVEVARIABLE is defined then its value will be appended to ABOVEVARIABLE depending on the status @@ -3928,6 +3975,11 @@ OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/de LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a .endif + + + + X_ABOVEVARIABLE_OFF + If X_ABOVEVARIABLE_OFF is set then a dependency of type ABOVEVARIABLE will be added when option X is not selected. For @@ -3945,6 +3997,8 @@ OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR . if ! ${PORT_OPTIONS:MOPT1} LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a .endif + +