Skip to content

Commit

Permalink
Change librsvg configure step for sdk >= 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hth- committed Nov 30, 2017
1 parent cd61edf commit c41e799
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion BuildMacDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,18 @@ buildgdkpixbuf()

buildlibrsvg()
{
# Taken from: https://stackoverflow.com/a/37939589
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }

echo --------------------------------------------------------------------
cd librsvg-2.34.0
autoreconf --force --install
LDFLAGS=`xml2-config --libs` CPPFLAGS=`xml2-config --cflags` ./configure --prefix=${AVG_PATH} --disable-shared --disable-gtk-theme --disable-tools
VAR=`xcrun --sdk macosx --show-sdk-version`
if [ $(version $VAR) -ge $(version "10.13") ]; then
LDFLAGS="`xml2-config --libs` -isysroot `xcrun --sdk macosx --show-sdk-path`" CPPFLAGS=`xml2-config --cflags` ./configure --prefix=${AVG_PATH} --disable-shared --disable-gtk-theme --disable-tools
else
LDFLAGS=`xml2-config --libs` CPPFLAGS=`xml2-config --cflags` ./configure --prefix=${AVG_PATH} --disable-shared --disable-gtk-theme --disable-tools
fi
make clean
make -j5
make install
Expand Down

0 comments on commit c41e799

Please sign in to comment.