Lines 4-12
Link Here
|
4 |
# |
4 |
# |
5 |
# Feature: cmake |
5 |
# Feature: cmake |
6 |
# Usage: USES=cmake or USES=cmake:ARGS |
6 |
# Usage: USES=cmake or USES=cmake:ARGS |
7 |
# Valid ARGS: outsource, run, noninja |
7 |
# Valid ARGS: insource, run, noninja |
8 |
# ARGS description: |
8 |
# ARGS description: |
9 |
# outsource perform an out-of-source build |
9 |
# insource do not perform an out-of-source build |
10 |
# noninja don't use ninja instead of make |
10 |
# noninja don't use ninja instead of make |
11 |
# Setting this should be an exception, and hints to an issue |
11 |
# Setting this should be an exception, and hints to an issue |
12 |
# inside the ports build system. |
12 |
# inside the ports build system. |
Lines 46-52
Link Here
|
46 |
.if !defined(_INCLUDE_USES_CMAKE_MK) |
46 |
.if !defined(_INCLUDE_USES_CMAKE_MK) |
47 |
_INCLUDE_USES_CMAKE_MK= yes |
47 |
_INCLUDE_USES_CMAKE_MK= yes |
48 |
|
48 |
|
49 |
_valid_ARGS= outsource run noninja |
49 |
_valid_ARGS= insource run noninja |
50 |
|
50 |
|
51 |
# Sanity check |
51 |
# Sanity check |
52 |
.for arg in ${cmake_ARGS} |
52 |
.for arg in ${cmake_ARGS} |
Lines 111-117
Link Here
|
111 |
_CMAKE_MSG= "===> Performing in-source build" |
111 |
_CMAKE_MSG= "===> Performing in-source build" |
112 |
CMAKE_SOURCE_PATH?= ${WRKSRC} |
112 |
CMAKE_SOURCE_PATH?= ${WRKSRC} |
113 |
|
113 |
|
114 |
.if ${cmake_ARGS:Moutsource} |
114 |
.if empty(cmake_ARGS:Minsource) |
115 |
_CMAKE_MSG= "===> Performing out-of-source build" |
115 |
_CMAKE_MSG= "===> Performing out-of-source build" |
116 |
CONFIGURE_WRKSRC= ${WRKDIR}/.build |
116 |
CONFIGURE_WRKSRC= ${WRKDIR}/.build |
117 |
BUILD_WRKSRC?= ${CONFIGURE_WRKSRC} |
117 |
BUILD_WRKSRC?= ${CONFIGURE_WRKSRC} |