-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Richard Fröhning <misanthropos@gmx.de>
- Loading branch information
1 parent
5f635a6
commit a805de9
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/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="ja2-stracciatella" | ||
rp_module_desc="Jagged Alliance 2 - Stracciatella" | ||
rp_module_licence="SFI-SCLA https://raw.githubusercontent.com/ja2-stracciatella/ja2-stracciatella/master/SFI%20Source%20Code%20license%20agreement.txt" | ||
rp_module_repo="git https://github.com/ja2-stracciatella/ja2-stracciatella.git v0.21.0" | ||
rp_module_flags="sdl2" | ||
rp_module_section="exp" | ||
|
||
function depends_ja2-stracciatella() { | ||
local depends=(cmake libsdl2-dev) | ||
[[ "$__os_debian_ver" -gt 11 ]] && depends+=(rustc cargo) | ||
[[ "$__os_debian_ver" -le 11 ]] && depends+=(rustc-mozilla cargo-mozilla) | ||
getDepends "${depends[@]}" | ||
} | ||
|
||
function sources_ja2-stracciatella() { | ||
gitPullOrClone | ||
} | ||
|
||
function build_ja2-stracciatella() { | ||
cmake . -DCMAKE_INSTALL_PREFIX="$md_inst" | ||
make | ||
md_ret_require="$md_build/ja2" | ||
strip "$md_build/ja2" | ||
} | ||
|
||
function install_ja2-stracciatella() { | ||
md_ret_files=( | ||
'ja2' | ||
'externalized' | ||
'mods' | ||
'unittests' | ||
) | ||
} | ||
|
||
function configure_ja2-stracciatella() { | ||
addPort "$md_id" "ja2-stracciatella" "Ja2-Stracciatella" "$md_inst/ja2 -fullscreen" | ||
} |