Merge pull request #44 from MaddTheSane/macPortsSupport

Add support for MacPorts
This commit is contained in:
Wolfgang Thaller 2018-01-17 23:22:41 +01:00 committed by GitHub
commit 88d7614612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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