2021-01-22 16:44:05 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2019-11-15 01:57:06 +00:00
|
|
|
port=openssl
|
2021-07-29 22:04:32 +00:00
|
|
|
branch='1.1.1'
|
2022-07-07 14:26:14 +00:00
|
|
|
version="${branch}q"
|
2019-11-15 01:57:06 +00:00
|
|
|
useconfigure=true
|
|
|
|
configscript=Configure
|
2022-07-07 14:26:14 +00:00
|
|
|
files="https://www.openssl.org/source/openssl-${version}.tar.gz openssl-${version}.tar.gz d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca"
|
2021-06-10 23:17:50 +00:00
|
|
|
auth_type=sha256
|
2020-02-04 00:11:35 +00:00
|
|
|
|
2021-09-26 22:16:18 +00:00
|
|
|
depends=("zlib")
|
2021-09-25 16:07:31 +00:00
|
|
|
configopts=("--prefix=/usr/local" "-DOPENSSL_SYS_SERENITY=1" "-DOPENSSL_USE_IPV6=0" "zlib" "threads" "no-tests" "no-asm" "serenity-generic")
|
2019-11-15 01:57:06 +00:00
|
|
|
|
|
|
|
configure() {
|
2022-01-08 12:43:37 +00:00
|
|
|
export LDFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
|
2021-09-26 22:16:18 +00:00
|
|
|
run ./"$configscript" "${configopts[@]}"
|
2019-11-15 01:57:06 +00:00
|
|
|
}
|
2021-07-29 22:04:32 +00:00
|
|
|
|
|
|
|
install() {
|
|
|
|
# The default "install" also installs docs, which we don't want.
|
2021-09-26 22:16:18 +00:00
|
|
|
run make DESTDIR=$DESTDIR install_sw "${installopts[@]}"
|
|
|
|
run make DESTDIR=$DESTDIR install_ssldirs "${installopts[@]}"
|
2021-07-29 22:04:32 +00:00
|
|
|
}
|