download-macos-libs.py: Update openssl

This commit is contained in:
Matt Borgerson 2025-01-02 02:59:22 -07:00
parent 6391cc1316
commit fb78770638
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ package_macos() {
dylibbundler -cd -of -b -x dist/xemu.app/Contents/MacOS/xemu \
-d ${lib_path}/ \
-p "@executable_path/${lib_rpath}/" \
-s ${PWD}/macos-libs/${target_arch}/opt/local/libexec/openssl11/lib/ \
-s ${PWD}/macos-libs/${target_arch}/opt/local/libexec/openssl3/lib/ \
-s ${PWD}/macos-libs/${target_arch}/opt/local/lib/
# Fixup some paths dylibbundler missed
@ -227,7 +227,7 @@ case "$platform" in # Adjust compilation options based on platform
fi
sys_ldflags='-headerpad_max_install_names'
export PKG_CONFIG_PATH="${lib_prefix}/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${lib_prefix}/libexec/openssl11/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${lib_prefix}/libexec/openssl3/lib/pkgconfig"
opts="$opts --disable-cocoa --cross-prefix="
postbuild='package_macos'
;;

View File

@ -148,7 +148,7 @@ class LibInstaller:
if l.strip().startswith('prefix'):
new_prefix = f'prefix={self._extract_path}/opt/local\n'
if pkg_name.startswith('openssl'): # FIXME
new_prefix = f'prefix={self._extract_path}/opt/local/libexec/openssl11\n'
new_prefix = f'prefix={self._extract_path}/opt/local/libexec/openssl3\n'
lines[i] = new_prefix
break
with open(extracted_path, 'w') as f:
@ -185,7 +185,7 @@ def main():
'libsamplerate',
'libpixman',
'libepoxy',
'openssl11',
'openssl3',
'libpcap',
'libslirp'])