mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
38 lines
884 B
Bash
Executable file
38 lines
884 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='curl'
|
|
version='8.11.1'
|
|
useconfigure='true'
|
|
files=(
|
|
"https://curl.se/download/curl-${version}.tar.bz2#e9773ad1dfa21aedbfe8e1ef24c9478fa780b1b3d4f763c98dd04629b5e43485"
|
|
)
|
|
depends=(
|
|
'ca-certificates'
|
|
'openssl'
|
|
'zlib'
|
|
'zstd'
|
|
)
|
|
|
|
configure() {
|
|
mkdir -p curl-build
|
|
cmake \
|
|
-G Ninja \
|
|
-S "curl-${version}" \
|
|
-B curl-build \
|
|
-DCMAKE_TOOLCHAIN_FILE="${SERENITY_BUILD_DIR}/CMakeToolchain.txt" \
|
|
-DCURL_USE_OPENSSL='ON' \
|
|
-DCURL_ZSTD='ON' \
|
|
-DCURL_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt' \
|
|
-DCURL_CA_PATH='none' \
|
|
-DCURL_DISABLE_NTLM='ON' \
|
|
-DCURL_DISABLE_SOCKETPAIR='ON' \
|
|
-DCURL_DISABLE_TESTS='ON' \
|
|
-DCURL_HIDDEN_SYMBOLS='OFF'
|
|
}
|
|
|
|
build() {
|
|
ninja -C curl-build
|
|
}
|
|
|
|
install() {
|
|
ninja -C curl-build install
|
|
}
|