2015-01-18 12:52:14 +00:00
|
|
|
Replace () {
|
|
|
|
CheckCommand="grep -ci '$1' Makefile"
|
|
|
|
CheckCount=$(eval $CheckCommand)
|
|
|
|
if [ "$CheckCount" -gt 0 ]; then
|
|
|
|
echo "Requested '$1' to '$2', found - replacing.."
|
|
|
|
ReplaceCommand="sed -i 's/$1/$2/g' Makefile"
|
|
|
|
eval $ReplaceCommand
|
|
|
|
else
|
|
|
|
echo "Skipping '$1' to '$2'"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
Replace '\-llzma' '\/usr\/lib\/x86_64\-linux\-gnu\/liblzma\.a'
|
2016-02-21 14:45:07 +00:00
|
|
|
Replace '\-lXi' '\/usr\/lib\/x86_64\-linux\-gnu\/libXi\.a \/usr\/lib\/x86_64\-linux\-gnu\/libXext\.a'
|
2015-02-12 11:07:04 +00:00
|
|
|
Replace '\-lSM' '\/usr\/lib\/x86_64\-linux\-gnu\/libSM\.a'
|
|
|
|
Replace '\-lICE' '\/usr\/lib\/x86_64\-linux\-gnu\/libICE\.a'
|
|
|
|
Replace '\-lfontconfig' '\/usr\/lib\/x86_64\-linux\-gnu\/libfontconfig\.a \/usr\/lib\/x86_64\-linux\-gnu\/libexpat\.a'
|
|
|
|
Replace '\-lfreetype' '\/usr\/lib\/x86_64\-linux\-gnu\/libfreetype\.a'
|
|
|
|
Replace '\-lXext' '\/usr\/lib\/x86_64\-linux\-gnu\/libXext\.a'
|
2015-01-18 12:52:14 +00:00
|
|
|
Replace '\-lopus' '\/usr\/local\/lib\/libopus\.a'
|
|
|
|
Replace '\-lopenal' '\/usr\/local\/lib\/libopenal\.a'
|
2015-06-01 11:15:07 +00:00
|
|
|
Replace '\-lavformat' '\/usr\/local\/lib\/libavformat\.a'
|
|
|
|
Replace '\-lavcodec' '\/usr\/local\/lib\/libavcodec\.a'
|
|
|
|
Replace '\-lswresample' '\/usr\/local\/lib\/libswresample\.a'
|
2015-12-24 20:31:21 +00:00
|
|
|
Replace '\-lswscale' '\/usr\/local\/lib\/libswscale\.a'
|
2015-06-01 11:15:07 +00:00
|
|
|
Replace '\-lavutil' '\/usr\/local\/lib\/libavutil\.a'
|
2015-12-24 22:49:07 +00:00
|
|
|
Replace '\-lva' '\/usr\/local\/lib\/libva\.a'
|
2016-02-21 14:45:07 +00:00
|
|
|
Replace '\-lQt5Network' '\/usr\/local\/Qt-5.5.1\/lib\/libQt5Network.a \/usr\/local\/ssl\/lib\/libssl.a \/usr\/local\/ssl\/lib\/libcrypto.a'
|