SDL2: only enable gles on armv6 for now and fix shlib_requires.

Close #1082
This commit is contained in:
Juan RP 2015-03-20 16:30:40 +01:00
parent 5d51ff68aa
commit 77f7de4d43

View file

@ -1,7 +1,7 @@
# Template file for 'SDL2'
pkgname=SDL2
version=2.0.3
revision=3
revision=4
build_style=gnu-configure
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
@ -22,15 +22,14 @@ if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; the
# Enable OpenGL, pulseaudio and x11
build_options_default+=" opengl pulseaudio x11"
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" -o "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
# Enable OpenGL/ES on ARM platforms
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
# Enable OpenGL/ES on rpi platforms
build_options_default+=" gles"
fi
if [ "$build_option_gles" ]; then
# libGLESv2.so.1 is dynamically loaded with dlopen.
shlib_requires="libGLESv2.so.1"
depends+=" libGLES>=1.0"
configure_args+=" --enable-video-opengles"
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
@ -39,6 +38,7 @@ if [ "$build_option_gles" ]; then
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vcos/pthreads"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib"
else
shlib_requires="libGLESv2.so.1"
makedepends+=" glu-devel"
fi
else