mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
CONFIGURE: Detect and use Mac Homebrew if it is installed
This commit is contained in:
parent
3de1a9dcaa
commit
38ee05d75b
19
configure
vendored
19
configure
vendored
@ -2227,6 +2227,25 @@ case $_host_os in
|
||||
fi
|
||||
fi
|
||||
|
||||
# Homebrew
|
||||
brew_version=`brew -v 2>/dev/null`
|
||||
if test "$?" -eq 0; then
|
||||
brew_version="`echo "${brew_version}" | sed -ne 's/Homebrew \([0-9.]*\)/\1/gp'`"
|
||||
echo_n "You seem to be running Homebrew version ${brew_version}..."
|
||||
|
||||
brew_prefix=`brew --prefix`
|
||||
|
||||
echo "adding ${brew_prefix} to paths"
|
||||
|
||||
LDFLAGS="-L${brew_prefix}/lib $LDFLAGS"
|
||||
CXXFLAGS="-I${brew_prefix}/include $CXXFLAGS"
|
||||
|
||||
if test -z "$_staticlibpath"; then
|
||||
_staticlibpath=${brew_prefix}
|
||||
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# If _staticlibpath is not set yet try first /sw (fink) then /usr/local
|
||||
# (the macports case is handled above).
|
||||
if test -z "$_staticlibpath"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user