From owner-freebsd-ports@FreeBSD.ORG Mon Jun 11 00:26:17 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 124D91065672 for ; Mon, 11 Jun 2012 00:26:17 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.dw.redsrci.com (mail.pub.dw.redsrci.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id DE2778FC0A for ; Mon, 11 Jun 2012 00:26:16 +0000 (UTC) Received: from mail.dw.redsrci.com (localhost [127.0.0.1]) by mail.dw.redsrci.com (Postfix) with ESMTP id 94EB36F5420; Sun, 10 Jun 2012 17:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= content-transfer-encoding:content-type:content-type:mime-version :user-agent:from:from:subject:subject:date:date:references :in-reply-to:message-id:received:received:received; s=ee; t= 1339374376; x=1341188776; bh=BsNVUFOu1yEF2eCGtxSe8n2C1mNEpkXv5EG MZm5c4M8=; b=rbNa3yc8XdpAExY4+j93WrU7PMFfRsO+/wM9XZiEWt7XIDWjxt+ u2HAIz9D7+TMjPqLP7MX68nDLrsxtYV2rAq4ljcwwkIeEaFb06oYsQZep/M4JNrt 7JbvJF9r+VBThwzRo1zo3o3RFDgIB4J2wimIBAd2jFRwZwg1pyeNRNY4= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.dw.redsrci.com ([127.0.0.1]) by mail.dw.redsrci.com (mail.dw.redsrci.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Jdfk4ppigaZ; Sun, 10 Jun 2012 17:26:16 -0700 (PDT) Received: from mail.experts-exchange.com (localhost [127.0.0.1]) by mail.dw.redsrci.com (Postfix) with ESMTP id 52B7A6F3FA6; Sun, 10 Jun 2012 17:26:16 -0700 (PDT) Received: from 66.122.76.184 (SquirrelMail authenticated user jhelfman) by mail.experts-exchange.com with HTTP; Sun, 10 Jun 2012 17:26:16 -0700 Message-ID: <13629e017227e9bd2be8635d0365a8af.squirrel@mail.experts-exchange.com> In-Reply-To: References: Date: Sun, 10 Jun 2012 17:26:16 -0700 From: "Jason Helfman" To: "Warren Block" User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:26:17 -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. > > True. I should've mentioned some updated documentation here regarding options, if you didn't know about it already: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-options.html If anything doesn't make sense please raise the issue, and possibly send in a documentation patch if you have time. White space patch doesn't count ;) -jgh