pantry/projects/cmake.org/package.yml

68 lines
1.8 KiB
YAML
Raw Normal View History

2022-08-02 05:50:33 +03:00
distributable:
url: https://github.com/Kitware/CMake/releases/download/v{{ version }}/cmake-{{ version }}.tar.gz
strip-components: 1
versions:
github: Kitware/CMake/releases/tags
2023-02-03 04:13:48 +03:00
ignore: /-rc\d/
2022-08-02 05:50:33 +03:00
detect:
cmd: cmake --version
regex: cmake version \v
dependencies:
curl.se: '>=5'
zlib.net: 1
sourceware.org/bzip2: 1
provides:
darwin:
- bin/cmake
- bin/ccmake
- bin/cpack
- bin/ctest
linux:
- bin/cmake
- bin/cpack
- bin/ctest
2022-08-02 05:50:33 +03:00
build:
script: |-
./bootstrap $ARGS
2022-08-02 05:50:33 +03:00
make --jobs {{ hw.concurrency }} install
2022-08-31 21:05:21 +03:00
rm -rf {{prefix}}/share/doc # docs are online
2022-08-02 05:50:33 +03:00
env:
V: 1
ARGS:
- --prefix={{ prefix }}
- --parallel={{ hw.concurrency }}
- --datadir=/var
- --docdir=/share/doc
- --mandir=/share/man
- --system-zlib
- --system-bzip2
- --system-curl
- --
- -DCMake_BUILD_LTO=ON
2022-10-17 21:08:05 +03:00
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
darwin:
ARGS:
- -DZLIB_LIBRARY={{deps.zlib.net.prefix}}/lib/libz.dylib
- -DZLIB_INCLUDE_DIR={{deps.zlib.net.prefix}}/include
- -DCURL_LIBRARY={{deps.curl.se.prefix}}/lib/libcurl.dylib
- -DCURL_INCLUDE_DIR={{deps.curl.se.prefix}}/include
- -DBZIP2_LIBRARIES={{deps.sourceware.org/bzip2.prefix}}/lib/libbz2.a
- -DBZIP2_INCLUDE_DIR={{deps.sourceware.org/bzip2.prefix}}/include
linux:
ARGS:
- -DZLIB_LIBRARY={{deps.zlib.net.prefix}}/lib/libz.so
- -DZLIB_INCLUDE_DIR={{deps.zlib.net.prefix}}/include
- -DCURL_LIBRARY={{deps.curl.se.prefix}}/lib/libcurl.so
- -DCURL_INCLUDE_DIR={{deps.curl.se.prefix}}/include
- -DBZIP2_LIBRARIES={{deps.sourceware.org/bzip2.prefix}}/lib/libbz2.so
- -DBZIP2_INCLUDE_DIR={{deps.sourceware.org/bzip2.prefix}}/include
error-log: Bootstrap.cmk/cmake_bootstrap.log
2022-08-02 05:50:33 +03:00
test: cmake --version