diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-09 19:17:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-09 19:17:24 +0300 |
commit | 03423e0583057cbe5a16f8439183e2dbc0e8dd7c (patch) | |
tree | 81fe3ba69d94146f83fb5541d1fb2da0ac4eac08 /extra/cmake | |
download | repository-03423e0583057cbe5a16f8439183e2dbc0e8dd7c.tar.gz |
secondary commit
Diffstat (limited to 'extra/cmake')
-rwxr-xr-x | extra/cmake/build | 38 | ||||
-rw-r--r-- | extra/cmake/checksums | 1 | ||||
-rw-r--r-- | extra/cmake/depends | 5 | ||||
-rw-r--r-- | extra/cmake/sources | 1 | ||||
-rw-r--r-- | extra/cmake/version | 1 |
5 files changed, 46 insertions, 0 deletions
diff --git a/extra/cmake/build b/extra/cmake/build new file mode 100755 index 00000000..401a7c14 --- /dev/null +++ b/extra/cmake/build @@ -0,0 +1,38 @@ +#!/bin/sh -e + +# Use cmake to build cmake if installed. +# This leads to a much faster build. +if kiss l cmake; then + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_USE_SYSTEM_CURL=True \ + -DCMAKE_USE_SYSTEM_EXPAT=True \ + -DCMAKE_USE_SYSTEM_ZLIB=True \ + -DCMAKE_USE_SYSTEM_BZIP2=True \ + -DBUILD_TESTING=OFF + + cmake --build build + DESTDIR="$1" cmake --install build + +else + ./configure \ + --prefix=/usr \ + --system-curl \ + --system-expat \ + --system-zlib \ + --system-bzip2 \ + --parallel="$(nproc)" + + make + make DESTDIR="$1" install +fi + +# Grab the package version. +IFS=. read -r ver1 ver2 _ < "${0%/*}/version" + +# Remove docs. +rm -rf "$1/usr/doc" +rm -rf "$1/usr/share/cmake-$ver1.$ver2/Help" diff --git a/extra/cmake/checksums b/extra/cmake/checksums new file mode 100644 index 00000000..877837b6 --- /dev/null +++ b/extra/cmake/checksums @@ -0,0 +1 @@ +6da56556c63cab6e9a3e1656e8763ed4a841ac9859fefb63cbe79472e67e8c5f cmake-3.16.0.tar.gz diff --git a/extra/cmake/depends b/extra/cmake/depends new file mode 100644 index 00000000..ae18e004 --- /dev/null +++ b/extra/cmake/depends @@ -0,0 +1,5 @@ +bzip2 +curl +expat +libressl +zlib diff --git a/extra/cmake/sources b/extra/cmake/sources new file mode 100644 index 00000000..2fc2b2cb --- /dev/null +++ b/extra/cmake/sources @@ -0,0 +1 @@ +https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0.tar.gz diff --git a/extra/cmake/version b/extra/cmake/version new file mode 100644 index 00000000..48e61399 --- /dev/null +++ b/extra/cmake/version @@ -0,0 +1 @@ +3.16.0 1 |