node-srt/scripts/configure-data.tcl.patch
Jonas Birmé 3ecb83ba6b
feat: update to SRT lib version 1.4.4 (#43)
Including:
- Updated SRT lib version to 1.4.4
- Building on Darwin arm64
- Obtain OPENSSL root using brew --prefix openssl
- Updated to latest node-addon-api and node-gyp
2022-11-10 16:50:48 +01:00

17 lines
668 B
Diff

diff --git a/configure-data.tcl b/configure-data.tcl
index 5c0ee2e..ebca78e 100644
--- a/configure-data.tcl
+++ b/configure-data.tcl
@@ -372,9 +372,10 @@ proc postprocess {} {
if { $er } {
error "You must have OpenSSL installed from 'brew' tool. The standard Mac version is inappropriate."
}
+ set prefix [exec brew --prefix openssl]
- lappend ::cmakeopt "-DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include"
- lappend ::cmakeopt "-DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib/libcrypto.a"
+ lappend ::cmakeopt "-DOPENSSL_INCLUDE_DIR=$prefix/include"
+ lappend ::cmakeopt "-DOPENSSL_LIBRARIES=$prefix/lib/libcrypto.a"
}
}
}