diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-01-09 03:07:34 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-09 23:32:03 +0100 |
commit | d8110e3bac1f63684d52def942ce3c9c97f1dc54 (patch) | |
tree | 4282af9042d8eb023f8c67a6e42416ccffa7dd1c /Ports | |
parent | 12c352dfc9e6664d7cecad2c5192b87b0be6863e (diff) | |
download | serenity-d8110e3bac1f63684d52def942ce3c9c97f1dc54.zip |
Ports: Add ccache port to make compiling on Serenity more fun :^)
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/ccache/package.sh | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 23bb7f80ce..b69cac0407 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -15,6 +15,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`byacc`](byacc/) | Berkeley Yacc | 20210808 | https://invisible-island.net/byacc/byacc.html | | [`bzip2`](bzip2/) | bzip2 | 1.0.8 | https://sourceware.org/bzip2/ | | [`carl`](carl/) | Crypto Ancienne Resource Loader | 1.5 | https://github.com/classilla/cryanc | +| [`ccache`](ccache/) | ccache | 4.5.1 | https://ccache.dev/ | | [`c-ray`](c-ray/) | C-Ray | c094d64 | https://github.com/vkoskiv/c-ray | | [`chester`](chester/) | Chester Gameboy Emulator | | https://github.com/veikkos/chester | | [`cmake`](cmake/) | CMake | 3.22.1 | https://cmake.org/ | diff --git a/Ports/ccache/package.sh b/Ports/ccache/package.sh new file mode 100755 index 0000000000..2e8fb623e9 --- /dev/null +++ b/Ports/ccache/package.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=ccache +version=4.5.1 +useconfigure=true +files="https://github.com/ccache/ccache/releases/download/v${version}/ccache-${version}.tar.gz ccache-$version.tar.gz f0d3cff5d555d6868f14a7d05696f0370074e475304fd5aa152b98f892364981" +auth_type=sha256 +depends=("zstd") +configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DCMAKE_BUILD_TYPE=Release" "-DREDIS_STORAGE_BACKEND=OFF" "-GNinja") + +configure() { + run cmake "${configopts[@]}" . +} + +build() { + run ninja +} + +install() { + run ninja install +} |