1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 08:47:35 +00:00
serenity/Ports/openssl/package.sh
Luke Wilde 69c451e485 Ports: Update OpenSSL to 1.1.1p
This also changes the source to fetch OpenSSL from the OpenSSL site, as
1.1.1p is not currently available from the usual source.
2022-06-21 18:14:55 +01:00

22 lines
800 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=openssl
branch='1.1.1'
version="${branch}p"
useconfigure=true
configscript=Configure
files="https://www.openssl.org/source/openssl-${version}.tar.gz openssl-${version}.tar.gz bf61b62aaa66c7c7639942a94de4c9ae8280c08f17d4eac2e44644d9fc8ace6f"
auth_type=sha256
depends=("zlib")
configopts=("--prefix=/usr/local" "-DOPENSSL_SYS_SERENITY=1" "-DOPENSSL_USE_IPV6=0" "zlib" "threads" "no-tests" "no-asm" "serenity-generic")
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[@]}"
}