diff --git a/game/sports/xmoto/actions.py b/game/sports/xmoto/actions.py
index 3b4ecc7ffa..a9fc2f83df 100644
--- a/game/sports/xmoto/actions.py
+++ b/game/sports/xmoto/actions.py
@@ -15,7 +15,11 @@ def setup():
shelltools.export("CPPFLAGS", "-D_GLIBCXX_USE_CXX11_ABI=0")
autotools.autoreconf("-vfi")
autotools.configure("--prefix=/usr \
+ --enable-threads=posix \
--disable-sdltest \
+ --with-OpenGL \
+ --with-renderer-sdlGfx=0 \
+ --with-renderer-openGl=1 \
--with-internal-xdg=1")
def build():
diff --git a/game/sports/xmoto/pspec.xml b/game/sports/xmoto/pspec.xml
index d7909945f9..68b68ce696 100644
--- a/game/sports/xmoto/pspec.xml
+++ b/game/sports/xmoto/pspec.xml
@@ -39,11 +39,18 @@
xmoto
+ curl
+ zlib
+ bzip2
+ libgcc
+ libpng
+ sqlite
+ libxml2
libsdl
sdl-mixer
sdl-ttf
sdl-net
- lua
+ lua51
ode
mesa
mesa-glu
diff --git a/multimedia/misc/libsdl/pspec.xml b/multimedia/misc/libsdl/pspec.xml
index 24b1c36e61..94798beaff 100644
--- a/multimedia/misc/libsdl/pspec.xml
+++ b/multimedia/misc/libsdl/pspec.xml
@@ -22,6 +22,8 @@
libXtst-devel
libICE-devel
libXrandr-devel
+ mesa-devel
+ mesa-glu-devel
sdl-1.2.14-disable-mmx.patch
@@ -98,6 +100,13 @@
+
+ 2017-12-12
+ 1.2.15
+ Rebuild.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2017-02-16
1.2.15
diff --git a/multimedia/misc/libsdl2/pspec.xml b/multimedia/misc/libsdl2/pspec.xml
index 8b35cd7784..bfbb2604a6 100755
--- a/multimedia/misc/libsdl2/pspec.xml
+++ b/multimedia/misc/libsdl2/pspec.xml
@@ -14,12 +14,15 @@
libsdl is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
http://www.libsdl.org/release/SDL2-2.0.5.tar.gz
+ dbus-devel
+ ibus-devel
mesa-devel
libXv-devel
libXt-devel
libX11-devel
libXext-devel
DirectFB-devel
+ mesa-glu-devel
alsa-lib-devel
audiofile-devel
libXrandr-devel
@@ -119,6 +122,13 @@
+
+ 2017-12-12
+ 2.0.5
+ Rebuild.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2017-02-16
2.0.5