ladybird/Ports/openssl/package.sh
2023-08-08 19:57:43 +02:00

33 lines
790 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='openssl'
version='3.0.9'
useconfigure='true'
configscript='Configure'
files=(
"https://www.openssl.org/source/openssl-${version}.tar.gz eb1ab04781474360f77c318ab89d8c5a03abc38e63d65a603cabbf1b00a1dc90"
)
depends=(
'zlib'
)
configopts=(
'--prefix=/usr/local'
'-DOPENSSL_SYS_SERENITY=1'
'-DOPENSSL_USE_IPV6=0'
'no-asm'
'no-tests'
'serenity-generic'
'threads'
'zlib'
)
configure() {
export LDFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
run ./"$configscript" "${configopts[@]}"
}
install() {
# The default "install" also installs docs, which we don't want.
run make DESTDIR=$DESTDIR install_sw "${installopts[@]}"
run make DESTDIR=$DESTDIR install_ssldirs "${installopts[@]}"
}