BuildSetup: Added HomeBrew Apple Silicon paths.

Addresses issue here: https://discuss.haiku-os.org/t/building-on-macos-cannot-find-zstd-h/14489/4

And the differences are called out on the install page here: https://docs.brew.sh/Installation

Cleanups by waddlesplash: put the new paths in their own 'block'
and adjust comments.

Change-Id: Ie00fbc07abae141d8ac0580dd661a2fc3cf7a216
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8732
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Devin Gillman 2024-12-28 17:02:33 -06:00 committed by waddlesplash
parent 7020e10ab8
commit 6a9e72b0d3

View File

@ -501,15 +501,20 @@ if $(HOST_PLATFORM) = freebsd {
if $(HOST_PLATFORM) = darwin {
HOST_HDRS += [ FDirName $(HAIKU_TOP) src build libgnuregex ] ;
# Mac OS X users may be using macports libraries, in which case the headers
# macOS users may be using macports libraries, in which case the headers
# and the libs are located in /opt/local/.
HOST_HDRS += /opt/local/include ;
HOST_LINKFLAGS += -L/opt/local/lib ;
# Mac OS X users may be using homebrew libraries, in which case the headers
# and the libs are locted in the /usr/local/.
# macOS users may be using homebrew libraries, in which case the headers
# and the libs are located in /usr/local/.
HOST_HDRS += /usr/local/include ;
HOST_LINKFLAGS += -L/usr/local/lib ;
# macOS users on Apple Silicon will usually have homebrew installed
# in /opt/homebrew instead of /usr/local.
HOST_HDRS += /opt/homebrew/include ;
HOST_LINKFLAGS += -L/opt/homebrew/lib ;
}
HOST_BE_API_HEADERS =