From owner-svn-doc-all@FreeBSD.ORG Thu Oct 4 18:39:42 2012 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69EC9106566B; Thu, 4 Oct 2012 18:39:42 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 52DBD8FC08; Thu, 4 Oct 2012 18:39:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q94Idgfn004403; Thu, 4 Oct 2012 18:39:42 GMT (envelope-from zeising@svn.freebsd.org) Received: (from zeising@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q94IdgSL004400; Thu, 4 Oct 2012 18:39:42 GMT (envelope-from zeising@svn.freebsd.org) Message-Id: <201210041839.q94IdgSL004400@svn.freebsd.org> From: Niclas Zeising Date: Thu, 4 Oct 2012 18:39:42 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r39657 - head/en_US.ISO8859-1/books/porters-handbook X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.5 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, 04 Oct 2012 18:39:42 -0000 Author: zeising Date: Thu Oct 4 18:39:41 2012 New Revision: 39657 URL: http://svn.freebsd.org/changeset/doc/39657 Log: Add a small example on how to check if a ports option is unset. Reviewed by: bapt Approved by: joel (mentor) 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 Thu Oct 4 16:06:29 2012 (r39656) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Thu Oct 4 18:39:41 2012 (r39657) @@ -4474,6 +4474,13 @@ RUN_DEPENDS+= bar:${PORTSDIR}/bar/bar .include <bsd.port.mk> + + Check for Unset Port <makevar>OPTIONS</makevar> + .if empty(PORT_OPTIONS:MEXAMPLES) +CONFIGURE_ARGS+=--without-examples +.endif + + Practical Use of <makevar>OPTIONS</makevar> @@ -4508,6 +4515,10 @@ CONFIGURE_ARGS+= --without-postgres LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu .endif +.if empty(PORT_OPTIONS:MEXAMPLES) +CONFIGURE_ARGS+= --without-examples +.endif + # Check other OPTIONS .include <bsd.port.mk>