diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-17 10:47:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 11:09:44 +0200 |
commit | 33a9b2a3c325e8875e75bd58d64de3463bf7f5d3 (patch) | |
tree | a24d04f124c2d4223247b2be0e21d3eb44c2f6c0 /Ports/cmake | |
parent | f77100d66ba279d33555823fa3ee81f18f81232f (diff) | |
download | serenity-33a9b2a3c325e8875e75bd58d64de3463bf7f5d3.zip |
Ports: Enable building cmake on the host
Diffstat (limited to 'Ports/cmake')
-rwxr-xr-x | Ports/cmake/package.sh | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/Ports/cmake/package.sh b/Ports/cmake/package.sh index 8c07921bfa..3e6763649d 100755 --- a/Ports/cmake/package.sh +++ b/Ports/cmake/package.sh @@ -1,34 +1,16 @@ #!/usr/bin/env -S bash ../.port_include.sh port=cmake version=3.19.4 -useconfigure=false +useconfigure=true files="https://github.com/Kitware/CMake/releases/download/v$version/cmake-$version.tar.gz cmake-$version.tar.gz 2a71f16c61bac5402004066d193fc14e" auth_type=md5 -depends="bash gcc make sed" +depends="bash gcc make sed ncurses" +configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt" -port_path=$(realpath $(dirname ${BASH_SOURCE[0]})) - -build() { - return +configure() { + run cmake $configopts . } install() { - cmake_dir="${SERENITY_BUILD_DIR}/Root/home/anon/Source/cmake" - run rm -rf "$cmake_dir" - run mkdir -p "$cmake_dir" - run cp -r . "$cmake_dir" -} - -post_install() { - echo +=================================================================== - echo "| Successfully prepared the sources for cmake v$version!" - echo "| The other half of the install has to be done inside serenity" - echo "| to continue, re-image and run the vm, then do the following:" - echo '| ' - echo '| $ cd Source/cmake' - echo '| $ ./bootstrap' - echo '| $ make && make install' - echo '| ' - echo "| (These instructions are also available in $port_path/howto.md)" - echo +=================================================================== + run make install } |