diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-10 08:40:13 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-10 08:40:13 +0000 |
commit | 6fe30383185a0af063b7509e03185e93d309920a (patch) | |
tree | 5f0f36525ddbbb238b9b3fa5a44af15266e4c8ff /Mk/bsd.cmake.mk | |
parent | feba34863acb668ef8f7cd8e3e4b4dee204ac830 (diff) |
Notes
Diffstat (limited to 'Mk/bsd.cmake.mk')
-rw-r--r-- | Mk/bsd.cmake.mk | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/Mk/bsd.cmake.mk b/Mk/bsd.cmake.mk index 5be9db9970de..4bdcd1021725 100644 --- a/Mk/bsd.cmake.mk +++ b/Mk/bsd.cmake.mk @@ -1,26 +1,31 @@ #-*- mode: Makefile; tab-width: 4; -*- # ex:ts=4 # -# USE_CMAKE - If set, this port uses cmake. +# USE_CMAKE - If set, this port uses cmake. # -# CMAKE_ENV - Environment passed to cmake. -# Default: ${CONFIGURE_ENV} +# CMAKE_ENV - Environment passed to cmake. +# Default: ${CONFIGURE_ENV} # CMAKE_ARGS - Arguments passed to cmake -# Default: see below -# CMAKE_USE_PTHREAD - Instruct cmake to use pthreads when -# compiling/linking -# Default: not set -# CMAKE_BUILD_TYPE - Type of build (cmake predefined build types), -# affects on CFLAGS and thus should not be set. -# Default: none (which respects CFLAGS) +# Default: see below +# CMAKE_USE_PTHREAD - Instruct cmake to use pthreads when compiling/linking +# Default: not set +# CMAKE_BUILD_TYPE - Type of build (cmake predefined build types). +# Projects may have their own build profiles. +# CMake supports the following types: Debug, +# Release, RelWithDebInfo and MinSizeRel. +# Debug and Release profiles respect system +# CFLAGS, RelWithDebInfo and MinSizeRel will set +# CFLAGS to "-O2 -g" and "-Os -DNDEBUG". +# Default: Release, if WITH_DEBUG is not set, +# Debug otherwise # CMAKE_VERBOSE - Verbose build -# Default: not set +# Default: not set # CMAKE_OUTSOURCE - Instruct to perform an out-of-source build -# Default: not set +# Default: not set # CMAKE_SOURCE_PATH - Path to sourcedir for cmake -# Default: ${WRKSRC} +# Default: ${WRKSRC} # CMAKE_INSTALL_PREFIX - prefix for cmake to use for installation. -# Default: ${PREFIX} +# Default: ${PREFIX} # # # $FreeBSD$ @@ -63,7 +68,15 @@ BUILD_WRKSRC= ${CONFIGURE_WRKSRC} INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} .endif CMAKE_INSTALL_PREFIX?= ${PREFIX} -CMAKE_BUILD_TYPE?= #none + +.if defined(WITH_DEBUG) +CMAKE_BUILD_TYPE?= Debug +.else +CMAKE_BUILD_TYPE?= Release +INSTALL_TARGET?= install/strip +.endif + +PLIST_SUB+= CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:L}" # # Instruct cmake to compile/link with pthreads @@ -78,13 +91,6 @@ CMAKE_ARGS+= -DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}" \ .endif # -# Strip binaries -# -.if !defined(WITH_DEBUG) -INSTALL_TARGET?= install/strip -.endif - -# # Force makefile verbosity if needed # .if defined(CMAKE_VERBOSE) || defined(BATCH) |