Skip to content

Commit

Permalink
Merge pull request #3526 from cmitu/es-build-omx
Browse files Browse the repository at this point in the history
emulationstation: build omxplayer only on dispmanx platforms
  • Loading branch information
joolswills authored May 22, 2022
2 parents 750d044 + 7fb4491 commit d10ed7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scriptmodules/supplementary/emulationstation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function depends_emulationstation() {

compareVersions "$__os_debian_ver" gt 8 && depends+=(rapidjson-dev)
isPlatform "x11" && depends+=(gnome-terminal)
if isPlatform "rpi" && isPlatform "32bit" && ! isPlatform "osmc"; then
if isPlatform "dispmanx" && ! isPlatform "osmc"; then
depends+=(omxplayer)
fi
getDepends "${depends[@]}"
Expand Down Expand Up @@ -170,6 +170,10 @@ function build_emulationstation() {
local gl_ver=$(sudo -u $user glxinfo | grep -oP "OpenGL version string: \K(\d+)")
[[ "$gl_ver" -gt 1 ]] && params+=(-DUSE_OPENGL_21=On)
fi
if isPlatform "dispmanx"; then
params+=(-DOMX=On)
fi

rpSwap on 1000
cmake . "${params[@]}"
make clean
Expand Down

0 comments on commit d10ed7d

Please sign in to comment.