martinmarinov / TempestSDR

Remote video eavesdropping using a software-defined radio platform
GNU General Public License v3.0
1.27k stars 241 forks source link

fix: darwin builds where homebrew is installed on different paths #48

Closed cusspvz closed 1 year ago

cusspvz commented 2 years ago

Homebrew can be installed on different paths.

Changed the makefile so it attempts to use the HOMEBREW_HOME as the libs folder for all the c++ include files

mgkuhn commented 1 year ago

On Intel macOS, the default homebrew prefix is /usr/local and not /opt/local:

$ uname -sm
Darwin x86_64
$ brew --prefix
/usr/local
cusspvz commented 1 year ago

@mgkuhn correct, but on arm64 (m1/m2) it is installed at /opt/local by default. This PR fixes builds on either arm64-based, or any installation that exists on a different prefix than the default one. We could also use brew --prefix to acquire the path.