Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/cmake.mk
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | MASTER_SITES?= https://github.com/Kitware/CMake/releases/download/v${DISTVERSION}/ \ | ||||
| https://www.cmake.org/files/v${DISTVERSION}/ | https://www.cmake.org/files/v${DISTVERSION}/ | ||||
| . else | . else | ||||
| BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core | BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core | ||||
| . if !empty(cmake_ARGS:Mrun) | . if !empty(cmake_ARGS:Mrun) | ||||
| RUN_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core | RUN_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core | ||||
| . endif | . endif | ||||
| . if defined(WITH_DEBUG) | . if defined(_WITH_DEBUG) | ||||
| CMAKE_BUILD_TYPE?= Debug | CMAKE_BUILD_TYPE?= Debug | ||||
| . elif defined(WITH_DEBUGINFO) | . elif defined(_WITH_DEBUGINFO) | ||||
| CMAKE_BUILD_TYPE?= RelWithDebInfo | CMAKE_BUILD_TYPE?= RelWithDebInfo | ||||
| . else | . else | ||||
| CMAKE_BUILD_TYPE?= Release | CMAKE_BUILD_TYPE?= Release | ||||
| . endif #defined(WITH_DEBUG) | . endif #defined(_WITH_DEBUG) | ||||
| CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ | CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ | ||||
| -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ | -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ | ||||
| -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ | -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ | ||||
| -DCMAKE_C_FLAGS_DEBUG:STRING="${CFLAGS}" \ | -DCMAKE_C_FLAGS_DEBUG:STRING="${CFLAGS}" \ | ||||
| -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS} -DNDEBUG" \ | -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS} -DNDEBUG" \ | ||||
| -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ | -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ | ||||
| -DCMAKE_CXX_FLAGS_DEBUG:STRING="${CXXFLAGS}" \ | -DCMAKE_CXX_FLAGS_DEBUG:STRING="${CXXFLAGS}" \ | ||||
| Show All 22 Lines | |||||
| . endif | . endif | ||||
| . if defined(CMAKE_NOCOLOR) | . if defined(CMAKE_NOCOLOR) | ||||
| CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE:BOOL=OFF | CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE:BOOL=OFF | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| . if empty(cmake_ARGS:Mindirect) | . if empty(cmake_ARGS:Mindirect) | ||||
| . if defined(STRIP) && ${STRIP} != "" && !defined(WITH_DEBUG) && !defined(WITH_DEBUGINFO) | . if defined(STRIP) && ${STRIP} != "" && !defined(_WITH_DEBUG) && !defined(_WITH_DEBUGINFO) | ||||
| INSTALL_TARGET?= install/strip | INSTALL_TARGET?= install/strip | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| # Use cmake for configure stage and for testing | # Use cmake for configure stage and for testing | ||||
| . if empty(cmake_ARGS:M_internal) && empty(cmake_ARGS:Mindirect) | . if empty(cmake_ARGS:M_internal) && empty(cmake_ARGS:Mindirect) | ||||
| PLIST_SUB+= CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:tl}" | PLIST_SUB+= CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:tl}" | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||