Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add C-Dogs SDL #1998

Merged
merged 1 commit into from
Jun 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 50 additions & 0 deletions scriptmodules/ports/cdogs-sdl.sh
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"
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"
}