Index: Mk/Uses/localbase.mk =================================================================== --- Mk/Uses/localbase.mk +++ Mk/Uses/localbase.mk @@ -15,4 +15,10 @@ CFLAGS+= -I${LOCALBASE}/include CXXFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib + +# CONFIGURE_ENV is used by devel/cmake itself (as it does not use CMAKE_ENV +# when bootstrapping) as well as most ports that depend on it. CMAKE_ENV is for +# the few ports that manually override and might also use CMAKE_PREFIX_PATH. +CONFIGURE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}" +CMAKE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}" .endif