pantry/projects/cmake.org/package.yml

67 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
detect:
cmd: cmake --version
regex: cmake version \v
dependencies:
curl.se: '>=5'
zlib.net: 1
sourceware.org/bzip2: 1
provides:
- bin/cmake
- bin/ccmake
- bin/cpack
- bin/ctest
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
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
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
2022-08-02 05:50:33 +03:00
error-log:
Bootstrap.cmk/cmake_bootstrap.log
test:
script:
cmake --version