mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Ports: Add nlohmann-json
This commit is contained in:
parent
32e9293ce0
commit
1f207282a1
Notes:
sideshowbarker
2024-07-17 00:37:28 +09:00
Author: https://github.com/janso3 Commit: https://github.com/SerenityOS/serenity/commit/1f207282a1 Pull-request: https://github.com/SerenityOS/serenity/pull/17371 Reviewed-by: https://github.com/timschumi ✅
2 changed files with 28 additions and 0 deletions
|
@ -180,6 +180,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
|||
| [`nethack`](nethack/) | nethack | 3.6.6 | https://www.nethack.org/ |
|
||||
| [`ninja`](ninja/) | Ninja | 1.11.0 | https://ninja-build.org/ |
|
||||
| [`nippon`](nippon/) | Nippon Safes Inc. | 1.0 | https://www.scummvm.org/games/#games-nippon |
|
||||
| [`nlohmann-json`](nlohmann-json/) | JSON for Modern C++ | 3.11.2 | https://json.nlohmann.me/ |
|
||||
| [`npiet`](npiet/) | Piet language interpreter | 1.3f | https://www.bertnase.de/npiet/ |
|
||||
| [`npth`](npth/) | New GNU Portable Threads Library | 1.6 | https://gnupg.org/software/npth/index.html |
|
||||
| [`ntbtls`](ntbtls/) | The Not Too Bad TLS Library | 0.2.0 | https://gnupg.org/software/ntbtls/index.html |
|
||||
|
|
27
Ports/nlohmann-json/package.sh
Executable file
27
Ports/nlohmann-json/package.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='nlohmann-json'
|
||||
version='3.11.2'
|
||||
auth_type='sha256'
|
||||
workdir="json-${version}"
|
||||
files="https://github.com/nlohmann/json/archive/refs/tags/v${version}.tar.gz json-${version}.tar.gz d69f9deb6a75e2580465c6c4c5111b89c4dc2fa94e3a85fcd2ffcd9a143d9273"
|
||||
useconfigure='true'
|
||||
configopts=(
|
||||
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||
"-DJSON_BuildTests=OFF"
|
||||
)
|
||||
|
||||
configure() {
|
||||
mkdir -p "${PORT_BUILD_DIR}/json-${version}-build"
|
||||
cd "${PORT_BUILD_DIR}/json-${version}-build"
|
||||
cmake "${configopts[@]}" "${PORT_BUILD_DIR}/json-${version}"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${PORT_BUILD_DIR}/json-${version}-build"
|
||||
make "${makeopts[@]}"
|
||||
}
|
||||
|
||||
install() {
|
||||
cd "${PORT_BUILD_DIR}/json-${version}-build"
|
||||
make install
|
||||
}
|
Loading…
Reference in a new issue