FFmpeg-Builds/scripts.d/25-openssl.sh
BtbN 93719c1a54 Revert "Explicitly enable OpenSSL on non-windows"
Accidental commit, OpenSSL 3.0 with Apache license is not out yet.

This reverts commit 3f06639835.
2021-06-10 18:06:55 +02:00

50 lines
1.1 KiB
Bash
Executable file

#!/bin/bash
OPENSSL_REPO="https://github.com/openssl/openssl.git"
OPENSSL_COMMIT="OpenSSL_1_1_1k"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$OPENSSL_REPO" "$OPENSSL_COMMIT" openssl
cd openssl
local myconf=(
threads
zlib
no-shared
enable-camellia
enable-ec
enable-srp
--prefix="$FFBUILD_PREFIX"
)
if [[ $TARGET == win64 ]]; then
myconf+=(
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
mingw64
)
elif [[ $TARGET == win32 ]]; then
myconf+=(
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
mingw
)
elif [[ $TARGET == linux64 ]]; then
myconf+=(
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
linux-x86_64
)
else
echo "Unknown target"
return -1
fi
./Configure "${myconf[@]}"
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
make -j$(nproc)
make install_sw
}