mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 05:30:31 -04:00
*/cmake*: hoist cmake version to cmake.mk (+)
Differential Revision: D31894 (revisited)
This commit is contained in:
parent
8d9a92ff1d
commit
7bdeb4414c
7 changed files with 53 additions and 43 deletions
|
@ -17,6 +17,7 @@
|
|||
# testing add the test target based on ctest
|
||||
# Additionally, CMAKE_TESTING_ON, CMAKE_TESTING_OFF, CMAKE_TESTING_ARGS, CMAKE_TESTING_TARGET
|
||||
# can be defined to override the default values.
|
||||
# _internal Not to be used by any other ports than the ones created from the release-tarball of cmake
|
||||
#
|
||||
#
|
||||
# Additional variables that affect cmake behaviour:
|
||||
|
@ -47,7 +48,9 @@
|
|||
.if !defined(_INCLUDE_USES_CMAKE_MK)
|
||||
_INCLUDE_USES_CMAKE_MK= yes
|
||||
|
||||
_valid_ARGS= insource run noninja testing
|
||||
_valid_ARGS= insource run noninja testing _internal
|
||||
|
||||
_CMAKE_VERSION= 3.24.3
|
||||
|
||||
# Sanity check
|
||||
. for arg in ${cmake_ARGS}
|
||||
|
@ -56,6 +59,8 @@ IGNORE= Incorrect 'USES+= cmake:${cmake_ARGS}' usage: argument [${arg}] is not r
|
|||
. endif
|
||||
. endfor
|
||||
|
||||
# Check whehter other flags than only '_internal' are passed (this should be equivalent to PORT = devel/cmake-core
|
||||
. if ${cmake_ARGS} != _internal
|
||||
CMAKE_BIN= ${LOCALBASE}/bin/cmake
|
||||
BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core
|
||||
|
||||
|
@ -166,5 +171,12 @@ do-test:
|
|||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET} && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${CMAKE_TESTING_TARGET}
|
||||
. endif
|
||||
. endif
|
||||
|
||||
. if !empty(cmake_ARGS:M_internal)
|
||||
MASTER_SITES?= https://github.com/Kitware/CMake/releases/download/v${DISTVERSION}/ \
|
||||
https://www.cmake.org/files/v${DISTVERSION}/
|
||||
|
||||
. endif
|
||||
|
||||
.endif #!defined(_INCLUDE_USES_CMAKE_MK)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= cmake
|
||||
# Remember to update devel/cmake-doc and devel/cmake-gui as well.
|
||||
DISTVERSION= 3.24.3
|
||||
DISTVERSION= ${_CMAKE_VERSION}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://github.com/Kitware/CMake/releases/download/v${DISTVERSION}/ \
|
||||
https://www.cmake.org/files/v${PORTVERSION}/
|
||||
|
@ -19,7 +19,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
|
|||
libuv.so:devel/libuv \
|
||||
librhash.so:security/rhash
|
||||
|
||||
USES= compiler:c++11-lang cpe ncurses
|
||||
USES= cmake:_internal compiler:c++11-lang cpe ncurses
|
||||
|
||||
CPE_VENDOR= cmake_project
|
||||
HAS_CONFIGURE= yes
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
PORTNAME= cmake
|
||||
DISTVERSION= 3.24.3
|
||||
DISTVERSION= ${_CMAKE_VERSION}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://www.cmake.org/files/v${PORTVERSION:R}/
|
||||
PKGNAMESUFFIX= -doc
|
||||
|
||||
MAINTAINER= kde@FreeBSD.org
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
PORTNAME= cmake
|
||||
DISTVERSION= 3.24.3
|
||||
DISTVERSION= ${_CMAKE_VERSION}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://www.cmake.org/files/v${PORTVERSION:R}/
|
||||
PKGNAMESUFFIX= -gui-${FLAVOR}
|
||||
|
||||
MAINTAINER= kde@FreeBSD.org
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
PORTNAME= cmake
|
||||
DISTVERSION= 3.24.3
|
||||
DISTVERSION= ${_CMAKE_VERSION}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://github.com/Kitware/CMake/releases/download/v${DISTVERSION}/ \
|
||||
https://www.cmake.org/files/v${DISTVERSION}/
|
||||
PKGNAMESUFFIX= -man
|
||||
|
||||
MAINTAINER= kde@FreeBSD.org
|
||||
|
@ -11,6 +9,8 @@ WWW= https://www.cmake.org/
|
|||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
DISTINFO_FILE= ${.CURDIR}/../cmake-core/distinfo
|
||||
|
||||
BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
||||
|
||||
USES= cmake
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
PORTNAME= cmake
|
||||
DISTVERSION= 3.24.3
|
||||
DISTVERSION= ${_CMAKE_VERSION}
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= kde@FreeBSD.org
|
||||
|
|
|
@ -16,6 +16,6 @@ GH_ACCOUNT= Kurento
|
|||
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_SUB= CMAKE_VERSION=3.24
|
||||
PLIST_SUB= CMAKE_VERSION=${_CMAKE_VERSION:R}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue