Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/cmake.mk
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
# Sanity check | # Sanity check | ||||
.for arg in ${cmake_ARGS} | .for arg in ${cmake_ARGS} | ||||
. if empty(_valid_ARGS:M${arg}) | . if empty(_valid_ARGS:M${arg}) | ||||
IGNORE= Incorrect 'USES+= cmake:${cmake_ARGS}' usage: argument [${arg}] is not recognized | IGNORE= Incorrect 'USES+= cmake:${cmake_ARGS}' usage: argument [${arg}] is not recognized | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
CMAKE_BIN= ${LOCALBASE}/bin/cmake | CMAKE_BIN= ${LOCALBASE}/bin/cmake | ||||
BUILD_DEPENDS+= ${CMAKE_BIN}:${PORTSDIR}/devel/cmake | BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake | ||||
.if ${cmake_ARGS:Mrun} | .if ${cmake_ARGS:Mrun} | ||||
RUN_DEPENDS+= ${CMAKE_BIN}:${PORTSDIR}/devel/cmake | RUN_DEPENDS+= ${CMAKE_BIN}:devel/cmake | ||||
.endif | .endif | ||||
.if defined(WITH_DEBUG) | .if defined(WITH_DEBUG) | ||||
CMAKE_BUILD_TYPE?= Debug | CMAKE_BUILD_TYPE?= Debug | ||||
.else | .else | ||||
CMAKE_BUILD_TYPE?= Release | CMAKE_BUILD_TYPE?= Release | ||||
.endif #defined(WITH_DEBUG) | .endif #defined(WITH_DEBUG) | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |