From owner-svn-doc-head@FreeBSD.ORG Tue Nov 6 13:11:15 2012 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D754C17C; Tue, 6 Nov 2012 13:11:15 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A2FFE8FC14; Tue, 6 Nov 2012 13:11:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA6DBFcV066047; Tue, 6 Nov 2012 13:11:15 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA6DBFvX066045; Tue, 6 Nov 2012 13:11:15 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201211061311.qA6DBFvX066045@svn.freebsd.org> From: Eitan Adler Date: Tue, 6 Nov 2012 13:11:15 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r39952 - 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-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 13:11:15 -0000 Author: eadler Date: Tue Nov 6 13:11:15 2012 New Revision: 39952 URL: http://svnweb.freebsd.org/changeset/doc/39952 Log: Prefer a more obvious syntax but add a note explaining why one may prefer the empty() syntax. PR: docs/172662 Submitted by: crees Approved by: bcr (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 Tue Nov 6 13:11:13 2012 (r39951) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Tue Nov 6 13:11:15 2012 (r39952) @@ -4476,7 +4476,7 @@ RUN_DEPENDS+= bar:${PORTSDIR}/bar/bar Check for Unset Port <makevar>OPTIONS</makevar> - .if empty(PORT_OPTIONS:MEXAMPLES) + .if ! ${PORT_OPTIONS:MEXAMPLES} CONFIGURE_ARGS+=--without-examples .endif @@ -4515,7 +4515,7 @@ CONFIGURE_ARGS+= --without-postgres LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu .endif -.if empty(PORT_OPTIONS:MEXAMPLES) +.if ! ${PORT_OPTIONS:MEXAMPLES} CONFIGURE_ARGS+= --without-examples .endif @@ -4620,6 +4620,17 @@ CONFIGURE_ARGS+= --disable-foo disabled. The configure script does not enable related features in the application, despite library's presence in the system. + + + Under some circumstances, the shorthand conditional + syntax can cause problems with complex constructs. + If you receive errors such as Malformed + conditional, an alternative syntax can be + used. + .if !empty(VARIABLE:MVALUE) +# as an alternative to +.if ${VARIABLE:MVALUE} +