pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cmake cmake/build.mk: add _VARGROUPS section



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b6b82aa5a45f
branches:  trunk
changeset: 383373:b6b82aa5a45f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Aug 18 16:20:15 2022 +0000

description:
cmake/build.mk: add _VARGROUPS section

This allows to run 'make show-all-cmake' in those packages that include
this file.

Sort 'test' and 'install' chronologically.

diffstat:

 devel/cmake/build.mk |  22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r f8ee51f5abcf -r b6b82aa5a45f devel/cmake/build.mk
--- a/devel/cmake/build.mk      Thu Aug 18 15:49:57 2022 +0000
+++ b/devel/cmake/build.mk      Thu Aug 18 16:20:15 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.2 2022/08/09 21:45:08 wiz Exp $
+# $NetBSD: build.mk,v 1.3 2022/08/18 16:20:15 rillig Exp $
 #
 # This Makefile fragment supports building using the CMake build tool.
 #
@@ -62,10 +62,10 @@
 
 CONFIGURE_DIRS?=       .
 BUILD_DIRS?=           ${CONFIGURE_DIRS}
+TEST_DIRS?=            ${CONFIGURE_DIRS}
 INSTALL_DIRS?=         ${CONFIGURE_DIRS}
-TEST_DIRS?=            ${CONFIGURE_DIRS}
 
-.PHONY: cmake-configure cmake-build cmake-install cmake-test
+.PHONY: cmake-configure cmake-build cmake-test cmake-install
 
 do-configure: cmake-configure
 cmake-configure:
@@ -100,3 +100,19 @@
                ${SETENV} ${INSTALL_ENV} \
                ${_CMAKE_BUILD_TOOL} ${CMAKE_INSTALL_ARGS} ${INSTALL_TARGET}
 .endfor
+
+_VARGROUPS+=           cmake
+_USER_VARS.cmake+=     CMAKE_GENERATOR
+_PKG_VARS.cmake+=      CMAKE_REQD
+_PKG_VARS.cmake+=      CMAKE_CONFIGURE_ARGS CONFIGURE_DIRS
+_PKG_VARS.cmake+=      CMAKE_BUILD_ARGS BUILD_DIRS
+_PKG_VARS.cmake+=      TEST_DIRS TEST_TARGET
+_PKG_VARS.cmake+=      CMAKE_INSTALL_ARGS INSTALL_DIRS INSTALL_TARGET
+_SYS_VARS.cmake+=      CMAKE_BUILD_DIR
+_USE_VARS.cmake+=      CMAKE_ARGS
+_USE_VARS.cmake+=      CONFIGURE_ENV MAKE_ENV TEST_ENV INSTALL_ENV
+_IGN_VARS.cmake+=      BUILDLINK_DIR WRKSRC PREFIX
+_IGN_VARS.cmake+=      SETENV TOOL_DEPENDS
+_IGN_VARS.cmake+=      _CMAKE_BUILD_SYSTEM _CMAKE_BUILD_TOOL _MAKE_JOBS_N
+_LISTED_VARS.cmake+=   *_ARGS
+_SORTED_VARS.cmake+=   *_ENV



Home | Main Index | Thread Index | Old Index