1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 11:07:46 +00:00

Ports: Add a cmake port

Yes, you build this *inside* serenity.
This commit is contained in:
AnotherTest 2021-02-11 22:37:29 +03:30 committed by Andreas Kling
parent bb777459a0
commit 80d6f46d4e
32 changed files with 9490 additions and 0 deletions

33
Ports/cmake/package.sh Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=cmake
version=3.19.4
useconfigure=false
files="https://github.com/Kitware/CMake/releases/download/v$version/cmake-$version.tar.gz cmake-$version.tar.gz"
depends="bash gcc make sed"
port_path=$(realpath $(dirname ${BASH_SOURCE[0]}))
build() {
return
}
install() {
cmake_dir="${SERENITY_ROOT}/Build/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 +===================================================================
}