Fri Aug 12 08:26:01 2022 UTC ()
cmake.mk: strip only for targets have USE_LANGUAGES


(adam)
diff -r1.23 -r1.24 pkgsrc/mk/configure/cmake.mk

cvs diff -r1.23 -r1.24 pkgsrc/mk/configure/cmake.mk (expand / switch to unified diff)

--- pkgsrc/mk/configure/cmake.mk 2022/08/05 18:54:43 1.23
+++ pkgsrc/mk/configure/cmake.mk 2022/08/12 08:26:01 1.24
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: cmake.mk,v 1.23 2022/08/05 18:54:43 adam Exp $ 1# $NetBSD: cmake.mk,v 1.24 2022/08/12 08:26:01 adam Exp $
2# 2#
3# This file handles packages that use CMake as their primary build 3# This file handles packages that use CMake as their primary build
4# system. For more information about CMake, see http://www.cmake.org/. 4# system. For more information about CMake, see http://www.cmake.org/.
5# 5#
6# Package-settable variables: 6# Package-settable variables:
7# 7#
8# CMAKE_DEPENDENCIES_REWRITE 8# CMAKE_DEPENDENCIES_REWRITE
9# A list of files (XXX: variable name) relative to WRKSRC in 9# A list of files (XXX: variable name) relative to WRKSRC in
10# which, after configuring the package, buildlink3 dependencies 10# which, after configuring the package, buildlink3 dependencies
11# are resolved to the real ones. 11# are resolved to the real ones.
12# 12#
13# CMAKE_MODULE_PATH_OVERRIDE 13# CMAKE_MODULE_PATH_OVERRIDE
14# A list of files relative to WRKSRC in which the CMAKE_MODULE_PATH 14# A list of files relative to WRKSRC in which the CMAKE_MODULE_PATH
@@ -35,27 +35,27 @@ @@ -35,27 +35,27 @@
35# If set to yes, set GNU standard installation directories with pkgsrc 35# If set to yes, set GNU standard installation directories with pkgsrc
36# configured settings. The default is yes. 36# configured settings. The default is yes.
37# 37#
38# CMAKE_INSTALL_PREFIX 38# CMAKE_INSTALL_PREFIX
39# Destination directory to install software. The default is ${PREFIX}. 39# Destination directory to install software. The default is ${PREFIX}.
40# 40#
41# CMAKE_INSTALL_NAME_DIR 41# CMAKE_INSTALL_NAME_DIR
42# Destination directory to install shlibs, used by 42# Destination directory to install shlibs, used by
43# install_name_tool(1) on macOS. The default is ${PREFIX}/lib. 43# install_name_tool(1) on macOS. The default is ${PREFIX}/lib.
44# 44#
45 45
46_CMAKE_DIR= ${BUILDLINK_DIR}/cmake-Modules 46_CMAKE_DIR= ${BUILDLINK_DIR}/cmake-Modules
47 47
48.if ${INSTALL_UNSTRIPPED:Uno:tl} != yes 48.if !empty(USE_LANGUAGES) && ${INSTALL_UNSTRIPPED:Uno:tl} != yes
49INSTALL_TARGET?= install/strip 49INSTALL_TARGET?= install/strip
50.endif 50.endif
51 51
52CMAKE_USE_GNU_INSTALL_DIRS?= yes 52CMAKE_USE_GNU_INSTALL_DIRS?= yes
53 53
54CMAKE_INSTALL_PREFIX?= ${PREFIX} 54CMAKE_INSTALL_PREFIX?= ${PREFIX}
55CMAKE_INSTALL_NAME_DIR?=${PREFIX}/lib 55CMAKE_INSTALL_NAME_DIR?=${PREFIX}/lib
56 56
57CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} 57CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
58CMAKE_ARGS+= -DCMAKE_MODULE_PATH:PATH=${_CMAKE_DIR} 58CMAKE_ARGS+= -DCMAKE_MODULE_PATH:PATH=${_CMAKE_DIR}
59.if empty(CMAKE_PKGSRC_BUILD_FLAGS:M[nN][oO]) 59.if empty(CMAKE_PKGSRC_BUILD_FLAGS:M[nN][oO])
60CMAKE_ARGS+= -DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE 60CMAKE_ARGS+= -DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE
61.endif 61.endif