Skip to content

Commit

Permalink
update to openssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 14, 2023
1 parent dfdba60 commit 8b02fc5
Showing 1 changed file with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion openssl

This file was deleted.

27 changes: 27 additions & 0 deletions openssl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use legacy bundle on high-sierra
if [ "x${OSTYPE:6:1}" = "x1" ]; then
bottle="https://github.com/autobrew/bundler/releases/download/openssl-3.1.1/openssl-1.1.1h-high_sierra.tar.xz"
else
bottle="https://github.com/autobrew/bundler/releases/download/openssl-3.1.1/openssl-3.1.1-universal.tar.xz"
fi

# Skip if disabled
if [ "$DISABLE_AUTOBREW" ]; then return 0; fi
echo "Using autobrew bundle: $(basename $bottle)"

# General setup
BREWDIR="$PWD/.deps"
mkdir -p $BREWDIR
curl -sSL $bottle -o libs.tar.xz
tar -xf libs.tar.xz --strip 1 -C $BREWDIR
cp ${BREWDIR}/lib/libssl.a ${BREWDIR}/lib/libbrewssl.a
cp ${BREWDIR}/lib/libcrypto.a ${BREWDIR}/lib/libbrewcrypto.a
rm -f libs.tar.xz

# Flags
PKG_CFLAGS="-I${BREWDIR}/include"
PKG_LIBS="-L${BREWDIR}/lib -lbrewssl -lbrewcrypto"

# Cleanup
echo "rm -Rf .deps" >> cleanup
chmod +x cleanup

0 comments on commit 8b02fc5

Please sign in to comment.