Add support for MacPorts

This commit is contained in:
C.W. Betts 2018-01-17 15:01:08 -07:00
parent 7f8a62f686
commit 7c0e99994b
1 changed files with 14 additions and 0 deletions

View File

@ -287,6 +287,13 @@ if [ $SKIP_THIRDPARTY != true ]; then
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
# or they could be using MacPorts. Default install
# location is /opt/local
if [ -d "/opt/local/include" ]; then
export CPPFLAGS="$CPPFLAGS -I/opt/local/include"
export LDFLAGS="$LDFLAGS -L/opt/local/lib"
fi
export CC=$HOST_C_COMPILER
export CXX=$HOST_CXX_COMPILER
@ -338,6 +345,13 @@ if [ $SKIP_THIRDPARTY != true ]; then
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
# or they could be using MacPorts. Default install
# location is /opt/local
if [ -d "/opt/local/include" ]; then
export CPPFLAGS="$CPPFLAGS -I/opt/local/include"
export LDFLAGS="$LDFLAGS -L/opt/local/lib"
fi
export CC=$HOST_C_COMPILER
export CXX=$HOST_CXX_COMPILER