mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
55 lines
1.5 KiB
Bash
55 lines
1.5 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="cdogs-sdl"
|
|
rp_module_desc="C-Dogs SDL - Classic overhead run-and-gun game"
|
|
rp_module_licence="GPL2 https://raw.githubusercontent.com/cxong/cdogs-sdl/master/COPYING"
|
|
rp_module_repo="git https://github.com/cxong/cdogs-sdl.git 1.4.1"
|
|
rp_module_section="exp"
|
|
rp_module_flags="sdl2"
|
|
|
|
function depends_cdogs-sdl() {
|
|
getDepends cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
|
|
}
|
|
|
|
function sources_cdogs-sdl() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_cdogs-sdl() {
|
|
cmake . -DCMAKE_INSTALL_PREFIX="$md_inst" -DCDOGS_DATA_DIR="$md_inst/"
|
|
make
|
|
md_ret_require="$md_build/src/cdogs-sdl"
|
|
}
|
|
|
|
function install_cdogs-sdl() {
|
|
md_ret_files=(
|
|
'data'
|
|
'dogfights'
|
|
'graphics'
|
|
'missions'
|
|
'music'
|
|
'sounds'
|
|
'COPYING'
|
|
'src/cdogs-sdl'
|
|
'src/cdogs-sdl-editor'
|
|
)
|
|
}
|
|
|
|
function configure_cdogs-sdl() {
|
|
addPort "$md_id" "cdogs-sdl" "C-Dogs SDL" "pushd $md_inst; $md_inst/cdogs-sdl; popd"
|
|
|
|
[[ "$md_mode" == "remove" ]] && return
|
|
|
|
isPlatform "dispmanx" && setBackend "$md_id" "dispmanx"
|
|
|
|
moveConfigDir "$home/.config/cdogs-sdl" "$md_conf_root/cdogs-sdl"
|
|
}
|