mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 03:27:45 +00:00
Ports: Add nlohmann-json
This commit is contained in:
parent
32e9293ce0
commit
1f207282a1
2 changed files with 28 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue