configuring ports via Makefile.local

Ion-Mihai Tetcu itetcu at
Tue Jul 27 04:33:17 PDT 2004

On Tue, 27 Jul 2004 12:07:20 +0200
Oliver Eikemeier <eikemeier at> wrote:

> Ion-Mihai Tetcu wrote:
> > Yes, I know it can be done. However, since we do support Makefile.local
> > I think Radim has a point here.
> Hmmm, I would not exactly say that we support configuration via 
> Makefile.local.

 [ ... ]

I was thinking of this:

 # grep -n -C2 Makefile.local /usr/ports/Mk/
916-# If they exist, include, then architecture/operating
917:# system specific Makefiles, then local Makefile.local.
919-.if ${MASTERDIR} != ${.CURDIR} && exists(${.CURDIR}/../
940:.if exists(${MASTERDIR}/Makefile.local)
941:.include "${MASTERDIR}/Makefile.local"
942-USE_SUBMAKE=        yes
> while this seems to support your assumption that configuring ports is 
> the intended purpose, I would neither call this `documentation' nor can 
> I find any reference how ports should support this file. In fact just 
> .including <> is a suggested procedure in the FreeBSD Porters 
> Handbook, regardless of the presence of configurable options.

OK. Then could we have please the right way documented somewhere for the
users ? Eventually explaining the interaction / precedence of the config
files we have: the options, plus variations of the solution Ulrich
posted (plus pkgtools.conf, plus unsupported Makefile.local).

Unregistered ;) FreeBSD "user"

More information about the freebsd-ports mailing list