31 lines
1.5 KiB
Bash
Executable File
31 lines
1.5 KiB
Bash
Executable File
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\/i386\-linux\-gnu\/liblzma\.a'
|
|
Replace '\-lz' '\/usr\/lib\/i386\-linux\-gnu\/libz\.a'
|
|
Replace '\-lssl' '\/usr\/lib\/i386\-linux\-gnu\/libssl\.a'
|
|
Replace '\-lcrypto' '\/usr\/lib\/i386\-linux\-gnu\/libcrypto\.a'
|
|
Replace '\-lexif' '\/usr\/lib\/i386\-linux\-gnu\/libexif\.a'
|
|
Replace '\-lgobject\-2\.0' '\/usr\/lib\/i386\-linux\-gnu\/libgobject\-2\.0\.a \/usr\/lib\/i386\-linux\-gnu\/libffi\.a'
|
|
Replace '\-lXi' '\/usr\/lib\/i386\-linux\-gnu\/libXi\.a'
|
|
Replace '\-lSM' '\/usr\/lib\/i386\-linux\-gnu\/libSM\.a'
|
|
Replace '\-lICE' '\/usr\/lib\/i386\-linux\-gnu\/libICE\.a'
|
|
Replace '\-lfontconfig' '\/usr\/lib\/i386\-linux\-gnu\/libfontconfig\.a \/usr\/lib\/i386\-linux\-gnu\/libexpat\.a'
|
|
Replace '\-lfreetype' '\/usr\/lib\/i386\-linux\-gnu\/libfreetype\.a'
|
|
Replace '\-lXext' '\/usr\/lib\/i386\-linux\-gnu\/libXext\.a'
|
|
Replace '\-lopus' '\/usr\/local\/lib\/libopus\.a'
|
|
Replace '\-lopenal' '\/usr\/local\/lib\/libopenal\.a'
|
|
Replace '\-lavformat' '\/usr\/local\/lib\/libavformat\.a'
|
|
Replace '\-lavcodec' '\/usr\/local\/lib\/libavcodec\.a'
|
|
Replace '\-lswresample' '\/usr\/local\/lib\/libswresample\.a'
|
|
Replace '\-lavutil' '\/usr\/local\/lib\/libavutil\.a'
|