From owner-freebsd-ports@FreeBSD.ORG Mon Jun 11 00:05:52 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CCBD1065674 for ; Mon, 11 Jun 2012 00:05:52 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id CE9688FC16 for ; Mon, 11 Jun 2012 00:05:51 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q5B05nbO078936; Sun, 10 Jun 2012 18:05:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q5B05nH0078933; Sun, 10 Jun 2012 18:05:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 10 Jun 2012 18:05:49 -0600 (MDT) From: Warren Block To: Jason Helfman In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 10 Jun 2012 18:05:49 -0600 (MDT) Cc: ports@freebsd.org Subject: Re: NOPORTDOCS and NOPORTEXAMPLES X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 00:05:52 -0000 On Sun, 10 Jun 2012, Jason Helfman wrote: >> So references to NOPORTDOCS should be replaced with references to >> PORT_OPTIONS:MDOCS now? Why that but not NOPORTEXAMPLES? > > You can use PORT_OPTIONS:MEXAMPLES for this case. > > I believe I did this recently in www/flot But only after bsd.port.options.mk is included. Here's what I was trying to do: .if ${PORT_OPTIONS:MDOCS} OPTIONS_DEFINE+= REFDOCS REFDOCS_DESC= Install the reference documents OPTIONS_DEFAULT+= REFDOCS .endif .if ${PORT_OPTIONS:MEXAMPLES} OPTIONS_DEFINE+= EXAMPLES EXAMPLES_DESC= Install the example code OPTIONS_DEFAULT+= EXAMPLES .endif .include ...which doesn't work because DOCS and EXAMPLES don't exist yet.