| @@ -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 |
49 | INSTALL_TARGET?= install/strip | | 49 | INSTALL_TARGET?= install/strip |
50 | .endif | | 50 | .endif |
51 | | | 51 | |
52 | CMAKE_USE_GNU_INSTALL_DIRS?= yes | | 52 | CMAKE_USE_GNU_INSTALL_DIRS?= yes |
53 | | | 53 | |
54 | CMAKE_INSTALL_PREFIX?= ${PREFIX} | | 54 | CMAKE_INSTALL_PREFIX?= ${PREFIX} |
55 | CMAKE_INSTALL_NAME_DIR?=${PREFIX}/lib | | 55 | CMAKE_INSTALL_NAME_DIR?=${PREFIX}/lib |
56 | | | 56 | |
57 | CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} | | 57 | CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} |
58 | CMAKE_ARGS+= -DCMAKE_MODULE_PATH:PATH=${_CMAKE_DIR} | | 58 | CMAKE_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]) |
60 | CMAKE_ARGS+= -DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE | | 60 | CMAKE_ARGS+= -DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE |
61 | .endif | | 61 | .endif |