-
-
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.
- Loading branch information
1 parent
8b0a297
commit 3d085a1
Showing
1 changed file
with
50 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,50 @@ | ||
#!/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_section="exp" | ||
rp_module_flags="!mali" | ||
|
||
function depends_cdogs-sdl() { | ||
getDepends cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev build-essential | ||
} | ||
|
||
function sources_cdogs-sdl() { | ||
gitPullOrClone "$md_build" https://github.com/cxong/cdogs-sdl.git | ||
} | ||
|
||
function build_cdogs-sdl() { | ||
cmake . -DCMAKE_INSTALL_PREFIX="$md_inst" -DCDOGS_DATA_DIR="$md_inst/" | ||
make | ||
md_ret_require="$md_build" | ||
} | ||
|
||
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() { | ||
mkUserDir "$home/.config/cdogs-sdl" | ||
moveConfigDir "$home/.config/cdogs-sdl" "$md_conf_root/cdogs-sdl" | ||
addPort "$md_id" "cdogs-sdl" "C-Dogs SDL" "pushd $md_inst; $md_inst/cdogs-sdl; popd" | ||
} |