Allow Samurai to be used to build CMake ports by setting USE_NINJA=samurai
Some of these variables may be moved to more permanent homes later, after samurai gets through a bulk build, but for now this allows testing of samurai without changing the default case of using ninja. Adapted from sthen@'s diff. ok sthen@
This commit is contained in:
parent
55915de896
commit
2a5249375f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: cmake.port.mk,v 1.63 2018/01/26 13:11:14 jca Exp $
|
||||
# $OpenBSD: cmake.port.mk,v 1.64 2018/09/11 12:12:31 bcallah Exp $
|
||||
|
||||
BUILD_DEPENDS+= devel/cmake
|
||||
|
||||
@ -16,9 +16,17 @@ USE_NINJA = No
|
||||
|
||||
.if ${USE_NINJA:L} == "yes"
|
||||
BUILD_DEPENDS += devel/ninja>=1.5.1
|
||||
_MODCMAKE_GEN = Ninja
|
||||
NINJA ?= ninja
|
||||
NINJA_FLAGS ?= -v -j ${MAKE_JOBS}
|
||||
.elif ${USE_NINJA:L} == "samurai"
|
||||
BUILD_DEPENDS += devel/samurai
|
||||
NINJA ?= samu
|
||||
NINJA_FLAGS ?= -v -j ${MAKE_JOBS}
|
||||
CONFIGURE_ARGS += -DCMAKE_MAKE_PROGRAM=${NINJA}
|
||||
.endif
|
||||
|
||||
.if ${USE_NINJA:L} == "yes" || ${USE_NINJA:L} == "samurai"
|
||||
_MODCMAKE_GEN = Ninja
|
||||
MODCMAKE_BUILD_TARGET = cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${NINJA} ${NINJA_FLAGS} ${ALL_TARGET}
|
||||
MODCMAKE_INSTALL_TARGET = cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
|
Loading…
Reference in New Issue
Block a user