mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
install.sh: Download mingw from sourceforge.
It will automatically extract to /usr/local/
This commit is contained in:
@@ -19,7 +19,7 @@ PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
|||||||
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
|
||||||
|
|
||||||
# here is the target environment located
|
# here is the target environment located
|
||||||
SET(CMAKE_FIND_ROOT_PATH /Users/skip/Downloads/mingw-w32-bin_i686-darwin_20130531/i686-w64-mingw32)
|
SET(CMAKE_FIND_ROOT_PATH /usr/local/mingw-w32-bin_i686-darwin_20130531/i686-w64-mingw32)
|
||||||
|
|
||||||
# adjust the default behaviour of the FIND_XXX() commands:
|
# adjust the default behaviour of the FIND_XXX() commands:
|
||||||
# search headers and libraries in the target environment, search
|
# search headers and libraries in the target environment, search
|
||||||
|
|||||||
20
install.sh
20
install.sh
@@ -49,18 +49,18 @@ if [[ `uname` == "Darwin" ]]; then
|
|||||||
sudo ln -s $wine_path /usr/include
|
sudo ln -s $wine_path /usr/include
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mingw_dmg=gcc-4.8.0-qt-4.8.4-for-mingw32.dmg
|
mingw_name=mingw-w32-bin_i686-darwin_20130531
|
||||||
mingw_path=/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin
|
mingw_tar=$mingw_name.tar.bz2
|
||||||
if [[ ! -f $cachedir/$mingw_dmg ]]; then
|
mingw_install_dir=/usr/local/
|
||||||
wget http://crossgcc.rts-software.org/download/gcc-4.8.0-qt-4.8.4-win32/$mingw_dmg --output-document $cachedir/$mingw_dmg
|
mingw_path=$mingw_install_dir$mingw_name/
|
||||||
|
if [[ ! -f $cachedir/$mingw_tar ]]; then
|
||||||
|
wget "https://downloads.sourceforge.net/project/mingw-w64/Toolchains targetting Win32/Automated Builds/$mingw_tar" --output-document $cachedir/$mingw_tar
|
||||||
fi
|
fi
|
||||||
|
if [[ ! -d $ming_path ]]; then
|
||||||
if [[ ! -d $mingw_path ]]; then
|
echo "Extracting contents of $mingw_tar to $mingw_install_dir"
|
||||||
echo "Open the DMG file and install its contents"
|
echo "Don't forget to add $mingw_path to your $PATH variable!"
|
||||||
open $cachedir/$mingw_dmg
|
tar -xyf $cachedir/$mingw_tar -C $mingw_install_dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "You will need to add $mingw_path to your \$PATH"
|
|
||||||
elif [[ `uname` == "Linux" ]]; then
|
elif [[ `uname` == "Linux" ]]; then
|
||||||
sudo apt-get install -y --force-yes binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
|
sudo apt-get install -y --force-yes binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user