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

dxx-rebirth: update for fkms and buster #2766

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions scriptmodules/ports/dxx-rebirth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@
#

rp_module_id="dxx-rebirth"
rp_module_desc="DXX-Rebirth (Descent & Descent 2) build from source"
rp_module_desc="DXX-Rebirth (Descent & Descent 2) source port"
rp_module_licence="NONCOM https://raw.githubusercontent.com/dxx-rebirth/dxx-rebirth/master/COPYING.txt"
rp_module_section="opt"
rp_module_flags="!mali !kms"
rp_module_flags="!mali"

function depends_dxx-rebirth() {
local depends=(libphysfs1 libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev scons)
isPlatform "rpi" && depends+=(libraspberrypi-dev)
local depends=(libpng-dev libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev scons)
if isPlatform "videocore"; then
depends+=(libraspberrypi-dev)
elif isPlatform "gles" && ! isPlatform "mesa"; then
depends+=(libgles2-mesa-dev)
else
depends+=(libgl1-mesa-dev libglu1-mesa-dev libsdl2-dev libsdl2-mixer-dev)
fi

getDepends "${depends[@]}"
}

Expand All @@ -27,7 +34,18 @@ function sources_dxx-rebirth() {

function build_dxx-rebirth() {
local params=()
isPlatform "rpi" && params+=(raspberrypi=1)
isPlatform "arm" && params+=("words_need_alignment=1")
if isPlatform "videocore"; then
params+=("raspberrypi=1")
elif isPlatform "mesa"; then
# GLES is limited to ES 1 and blocks SDL2; GL works at fullspeed on Pi 3.
params+=("raspberrypi=mesa" "opengl=1" "opengles=0" "sdl2=1")
elif isPlatform "gles"; then
params+=("opengl=0" "opengles=1")
else
params+=("opengl=1" "opengles=0" "sdl2=1")
fi

scons -c
scons "${params[@]}"
md_ret_require=(
Expand Down