Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2012 17:26:16 -0700
From:      "Jason Helfman" <jhelfman@e-e.com>
To:        "Warren Block" <wblock@wonkity.com>
Cc:        ports@freebsd.org
Subject:   Re: NOPORTDOCS and NOPORTEXAMPLES
Message-ID:  <13629e017227e9bd2be8635d0365a8af.squirrel@mail.experts-exchange.com>
In-Reply-To: <alpine.BSF.2.00.1206101736170.78656@wonkity.com>
References:  <alpine.BSF.2.00.1206101408330.77586@wonkity.com> <f5dc8813da21631bff52d1017bcd6dcf.squirrel@mail.experts-exchange.com> <alpine.BSF.2.00.1206101736170.78656@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <bsd.port.options.mk>
>
> ...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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13629e017227e9bd2be8635d0365a8af.squirrel>