Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are no files selected for viewing
| @@ -0,0 +1,62 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # This file is part of The RetroPie Project | ||
| # | ||
| # The RetroPie Project is the legal property of its developers, whose names are | ||
| # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. | ||
| # | ||
| # See the LICENSE.md file at the top-level directory of this distribution and | ||
| # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md | ||
| # | ||
|
|
||
| rp_module_id="solarus" | ||
| rp_module_desc="solarus - An Open Source Zelda LttP Engine" | ||
| rp_module_menus="4+" | ||
| rp_module_flags="" | ||
|
|
||
| function depends_solarus() { | ||
| getDepends libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libluajit-5.1-dev libphysfs-dev libopenal-dev libmodplug-dev libvorbis-dev zip | ||
| } | ||
|
|
||
| function sources_solarus() { | ||
| wget -O- -q http://www.solarus-games.org/downloads/solarus/solarus-1.4.5-src.tar.gz | tar -xvz --strip-components=1 | ||
| wget -O- -q http://www.zelda-solarus.com/zs/download/zmosdx-src/ | tar -xvz | ||
| wget -O- -q http://www.zelda-solarus.com/zs/download/zmosxd-src/ | tar -xvz | ||
| wget -O- -q http://www.zelda-solarus.com/zs/download/zroth-src/ | tar -xvz | ||
| } | ||
|
|
||
| function build_solarus() { | ||
| mkdir build | ||
| cd build | ||
| cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$md_inst" | ||
| make | ||
| cd ../zsdx-1.10.3/ | ||
| cmake . -DCMAKE_INSTALL_PREFIX:PATH="$md_inst" | ||
| make | ||
| cd ../zsxd-1.10.3/ | ||
| cmake . -DCMAKE_INSTALL_PREFIX:PATH="$md_inst" | ||
| make | ||
| cd ../zelda-roth-se-1.0.8/ | ||
| cmake . -DCMAKE_INSTALL_PREFIX:PATH="$md_inst" | ||
| make | ||
| } | ||
|
|
||
| function install_solarus() { | ||
| cd build | ||
| make install | ||
| cd ../zsdx-1.10.3/ | ||
| make install | ||
| cd ../zsxd-1.10.3/ | ||
| make install | ||
| cd ../zelda-roth-se-1.0.8/ | ||
| make install | ||
| } | ||
|
|
||
| function configure_solarus() { | ||
| addPort "$md_id" "zsdx" "Solarus Engine - Zelda Mystery of Solarus DX" "LD_LIBRARY_PATH=$md_inst/lib/arm-linux-gnueabihf/ $md_inst/bin/solarus_run $md_inst/share/solarus/zsdx/" | ||
| addPort "$md_id" "zsxd" "Solarus Engine - Zelda Mystery of Solarus XD" "LD_LIBRARY_PATH=$md_inst/lib/arm-linux-gnueabihf/ $md_inst/bin/solarus_run $md_inst/share/solarus/zsxd/" | ||
| addPort "$md_id" "zelda_roth_se" "Solarus Engine - Zelda Return of the Hylian SE" "LD_LIBRARY_PATH=$md_inst/lib/arm-linux-gnueabihf/ $md_inst/bin/solarus_run $md_inst/share/solarus/zelda_roth_se/" | ||
| chown -R $user:$user "$md_inst/share/solarus/zsdx/data.solarus" | ||
| chown -R $user:$user "$md_inst/share/solarus/zsxd/data.solarus" | ||
| chown -R $user:$user "$md_inst/share/solarus/zelda_roth_se/data.solarus" | ||
| } |