Pass options to dependency

Eugene Grosbein eugen at grosbein.net
Mon Jun 5 09:56:20 UTC 2017


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



More information about the freebsd-ports mailing list