Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/localbase.mk
Show All 11 Lines | |||||
.endif | .endif | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_LOCALBASE_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_LOCALBASE_POST_MK) | ||||
_INCLUDE_USES_LOCALBASE_POST_MK=yes | _INCLUDE_USES_LOCALBASE_POST_MK=yes | ||||
CPPFLAGS+= -isystem ${LOCALBASE}/include | CPPFLAGS+= -isystem ${LOCALBASE}/include | ||||
CFLAGS+= -isystem ${LOCALBASE}/include | CFLAGS+= -isystem ${LOCALBASE}/include | ||||
CXXFLAGS+= -isystem ${LOCALBASE}/include | CXXFLAGS+= -isystem ${LOCALBASE}/include | ||||
.if ${localbase_ARGS:Mldflags} | . if ${localbase_ARGS:Mldflags} | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
.else | . else | ||||
LIBS+= -L${LOCALBASE}/lib | LIBS+= -L${LOCALBASE}/lib | ||||
.endif | . endif | ||||
# Use CONFIGURE_ENV instead of CMAKE_ARGS because devel/cmake itself also needs | # Use CONFIGURE_ENV instead of CMAKE_ARGS because devel/cmake itself also needs | ||||
# this, and CMAKE_ARGS is not used when bootstrapping CMake. | # this, and CMAKE_ARGS is not used when bootstrapping CMake. | ||||
CONFIGURE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}" | CONFIGURE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}" | ||||
.endif | .endif |