mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
The SMW fork from mmatyas/supermariowar is still active and it has the options to use SDL2 instead of SDL1. Switched the scriptmodule to it with updated dependencies and build instructions. New version also changed the configuration location, now in a dedicated folder. Main changes since 1.8 * Experimental online mode, including an online lobby server * Lots and lots and lots of bugfixes (seriously, there's at least 200) * Added Web, ARM and (an experimental) Android ports, and improved support for Windows, Linux and OSX * Improved music and sound quality * Ported all parts of the game to SDL2, for hardware accelerated drawing and improved support for many platforms * Major cleanup of the source code and the build system NOTE: I've updated the license to GPL2, since this is what's declared in the CMake build file.
57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
#!/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="smw"
|
|
rp_module_desc="Super Mario War - A fan-made multiplayer Super Mario Bros. style deathmatch game"
|
|
rp_module_licence="GPL2 https://smwstuff.net"
|
|
rp_module_repo="git https://github.com/mmatyas/supermariowar master"
|
|
rp_module_section="opt"
|
|
rp_module_flags="sdl2"
|
|
|
|
function depends_smw() {
|
|
getDepends cmake libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev zlib1g-dev
|
|
}
|
|
|
|
function sources_smw() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_smw() {
|
|
local params=(-DUSE_SDL2_LIBS=ON -DSMW_INSTALL_PORTABLE=ON)
|
|
isPlatform "gles2" && params+=(-DSDL2_FORCE_GLES=ON)
|
|
rm -fr build
|
|
mkdir -p build && cd build
|
|
cmake .. "${params[@]}"
|
|
make smw
|
|
md_ret_require="$md_build/build/smw"
|
|
}
|
|
|
|
function install_smw() {
|
|
md_ret_files=(
|
|
"build/smw"
|
|
"data"
|
|
"docs"
|
|
"README.md"
|
|
"CREDITS"
|
|
)
|
|
}
|
|
|
|
function configure_smw() {
|
|
addPort "$md_id" "smw" "Super Mario War" "$md_inst/smw"
|
|
|
|
[[ "$md_mode" == "remove" ]] && return
|
|
|
|
moveConfigDir "$home/.smw" "$md_conf_root/smw"
|
|
# try to migrate existing settings to the new conf folder
|
|
if [[ -f "$md_conf_root/smw/.smw.options.bin" ]] ; then
|
|
mv "$md_conf_root/smw/.smw.options.bin" "$md_conf_root/smw/options.bin"
|
|
fi
|
|
}
|