From owner-svn-doc-all@freebsd.org Fri Jul 24 12:43:07 2015 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1781D9A95EB; Fri, 24 Jul 2015 12:43:07 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.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 EEF971AC8; Fri, 24 Jul 2015 12:43:06 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6OCh6ga086055; Fri, 24 Jul 2015 12:43:06 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6OCh6Ex086054; Fri, 24 Jul 2015 12:43:06 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201507241243.t6OCh6Ex086054@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Fri, 24 Jul 2015 12:43:06 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r47063 - 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.20 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: Fri, 24 Jul 2015 12:43:07 -0000 Author: mat Date: Fri Jul 24 12:43:05 2015 New Revision: 47063 URL: https://svnweb.freebsd.org/changeset/doc/47063 Log: Document the target helpers introduced in rP391051. Reviewed by: wblock Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2957 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 Fri Jul 24 00:09:35 2015 (r47062) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Fri Jul 24 12:43:05 2015 (r47063) @@ -4425,6 +4425,8 @@ QMAKE_ARGS+= -DTEST:BOOL=false + The following variables can be used. + <varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname> @@ -4574,6 +4576,8 @@ LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/ + The following variables can be used. + Some variables are not in this list, in particular PKGNAMEPREFIX and @@ -4662,6 +4666,137 @@ USES+= gmake + + + Additional Build Targets + + These Makefile targets can accept + optional extra build targets: + + + + pre-fetch + + + + post-fetch + + + + pre-extract + + + + post-extract + + + + pre-patch + + + + post-patch + + + + pre-configure + + + + post-configure + + + + pre-build + + + + post-build + + + + pre-install + + + + post-install + + + + pre-package + + + + post-package + + + + pre-stage + + + + post-stage + + + + The additional build targets are listed below. + + + + <buildtarget><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-on</buildtarget> + + When option OPT is + selected, the target + ABOVETARGET-OPT-on, + if defined, is executed after + ABOVETARGET. + For example: + + OPTIONS_DEFINE= OPT1 + +post-patch-OPT1-on: + @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile + + is equivalent to: + + OPTIONS_DEFINE= OPT1 + +.include <bsd.port.options.mk> + +post-patch: +.if ${PORT_OPTIONS:MOPT1} + @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile +.endif + + + + + <buildtarget><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-off</buildtarget> + + When option OPT is + not selected, the target + ABOVETARGET-OPT-off, + if defined, is executed after + ABOVETARGET. + For example: + + OPTIONS_DEFINE= OPT1 + +post-patch-OPT1-off: + @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile + + is equivalent to: + + OPTIONS_DEFINE= OPT1 + +.include <bsd.port.options.mk> + +post-patch: +.if !${PORT_OPTIONS:MOPT1} + @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile +.endif + +