1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-08 23:50:48 +00:00
serenity/Ports/openssl/package.sh
EWouters 50758181a3 Ports: Update formatting to be consistent with other ports
This commit updates the formatting for all ports to be updated in this
PR in one go, to keep those changes centralized.
2023-10-12 23:30:22 +02:00

33 lines
800 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[@]}"
}