|
|
@@ -3,16 +3,26 @@ |
|
|
|
set -e |
|
|
|
|
|
|
|
# common |
|
|
|
sudo apt-get install -y build-essential coreutils curl cmake jq |
|
|
|
sudo apt-get install -y build-essential curl cmake jq |
|
|
|
|
|
|
|
# for cross-compilation |
|
|
|
if [ "${TARGET}" = "macos-old" ]; then |
|
|
|
sudo apt-get install -y apple-x86-gcc apple-uni-sdk-10.5 |
|
|
|
mkdir -p ${HOME}/PawPawBuilds/debs |
|
|
|
pushd ${HOME}/PawPawBuilds/debs |
|
|
|
if [ ! -f 'apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb' ]; then |
|
|
|
wget -c 'https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb' |
|
|
|
fi |
|
|
|
if [ ! -f 'apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb' ]; then |
|
|
|
wget -c 'https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb' |
|
|
|
fi |
|
|
|
sudo dpkg -i 'apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb' |
|
|
|
sudo dpkg -i 'apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb' |
|
|
|
popd |
|
|
|
|
|
|
|
elif [ "${TARGET}" = "win32" ]; then |
|
|
|
sudo apt-get install -y mingw32-x-gcc |
|
|
|
sudo apt-get install -y mingw-w64 binutils-mingw-w64-i686 g++-mingw-w64-i686 |
|
|
|
|
|
|
|
elif [ "${TARGET}" = "win64" ]; then |
|
|
|
sudo apt-get install -y mingw64-x-gcc |
|
|
|
sudo apt-get install -y mingw-w64 binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 |
|
|
|
|
|
|
|
fi |