Skip to content

Commit

Permalink
add C-Dogs SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbFargus committed Jun 5, 2017
1 parent 8b0a297 commit 3d085a1
Showing 1 changed file with 50 additions and 0 deletions.
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/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"
}

0 comments on commit 3d085a1

Please sign in to comment.