From owner-freebsd-doc@FreeBSD.ORG Wed Jan 19 21:40:23 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A47916A4CE for ; Wed, 19 Jan 2005 21:40:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F30EE43D31 for ; Wed, 19 Jan 2005 21:40:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0JLeMCd070516 for ; Wed, 19 Jan 2005 21:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0JLeMBK070515; Wed, 19 Jan 2005 21:40:22 GMT (envelope-from gnats) Date: Wed, 19 Jan 2005 21:40:22 GMT Message-Id: <200501192140.j0JLeMBK070515@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Edwin Groothuis Subject: Re: docs/76472: [patch] tell porters handbook about OPTIONS X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Edwin Groothuis List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 21:40:23 -0000 The following reply was made to PR docs/76472; it has been noted by GNATS. From: Edwin Groothuis To: FreeBSD Gnats Submit Cc: Subject: Re: docs/76472: [patch] tell porters handbook about OPTIONS Date: Thu, 20 Jan 2005 08:30:44 +1100 As noted by pav: option names should be uppercase: --- makefile-options.diff.old Thu Jan 20 08:29:45 2005 +++ makefile-options.diff Thu Jan 20 08:28:43 2005 @@ -24,7 +24,7 @@ + Syntax + The syntax for the OPTIONS variable is: + -+OPTIONS= option "descriptive text" default ... ++OPTIONS= OPTION "descriptive text" default ... + + + The value for default is either ON or @@ -48,15 +48,15 @@ + Example + + Simple use of <makevar>OPTIONS</makevar> -+ OPTIONS= foo "Enable option foo" On \ -+ bar "Support feature bar" Off ++ OPTIONS= FOO "Enable option foo" On \ ++ BAR "Support feature bar" Off + +.include <bsd.port.pre.mk> + -+.if defined(WITH_FOO) -+CONFIGURE_ARGS+= --with-foo -+.else ++.if defined(WITHOUT_FOO) +CONFIGURE_ARGS+= --without-foo ++.else ++CONFIGURE_ARGS+= --with-foo +.endif + +.if defined(WITH_BAR) -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/