Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2017 16:56:06 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        ports@freebsd.org
Subject:   Pass options to dependency
Message-ID:  <59352AB6.3040005@grosbein.net>

next in thread | raw e-mail | index | archive | help
Hi!

How can a port (its Makefile) pass a build option to BUILD_DEPENDS?
For example, devel/ragel has:

DOCS_USE=               TEX=latex:build
DOCS_BUILD_DEPENDS=     fig2dev:print/transfig

And "make -C /usr/ports/devel/ragel all-depends-list" shows HUGE
list of its dependencies completely unneded for a port that just
needs to use BUILD_DEPENDS=ragel:devel/ragel

The reason is that bsd.options.mk includes PORT_OPTIONS+=  DOCS
unless user option NOPORTDOCS is set.

Is it possible to specify something like OPTIONS_EXCLUDE=DOCS
for BUILD_DEPENDS entity?

Eugene Grosbein




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59352AB6.3040005>