blob: 6ee2491a6ea0054d3b0c8d9ca12f1dd7e8cde9f8 (
plain)
1 # Description: A cross-platform, open-source make system
2 # URL: https://www.cmake.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: curl expat jsoncpp libarchive libnghttp2 libuv lzlib ncurses rhash
5 # Optional: python3-sphinx
6
7 name=cmake
8 version=3.25.1
9 release=1
10 source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 sed -i Source/CMakeInstallDestinations.cmake \
16 -e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
17
18 prt-get isinst ccache && PKGMK_CMAKE+=' --enable-ccache'
19
20 ./bootstrap --generator=Ninja $PKGMK_CMAKE \
21 --prefix=/usr \
22 --datadir=/share/cmake \
23 --bootstrap-system-libuv \
24 --bootstrap-system-jsoncpp \
25 --bootstrap-system-librhash \
26 --system-libs \
27 --parallel=${JOBS:-1} \
28 $(prt-get isinst python3-sphinx >/dev/null && echo --sphinx-man) \
29 -- -D CMake_BUILD_LTO=ON \
30 -D BUILD_TESTING=OFF
31
32 ninja
33 DESTDIR=$PKG ninja install
34 rm -r $PKG/usr/{doc,share/cmake/Help}
35
36 ln -sf $name $PKG/usr/share/$name-${version%.*}
37
38 prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
39 rm -r $PKG/usr/share/emacs
40 }
|