SDL2: only enable gles on armv6 for now and fix shlib_requires.
Close #1082
This commit is contained in:
parent
5d51ff68aa
commit
77f7de4d43
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'SDL2'
|
# Template file for 'SDL2'
|
||||||
pkgname=SDL2
|
pkgname=SDL2
|
||||||
version=2.0.3
|
version=2.0.3
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
|
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
|
||||||
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
|
--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
|
# Enable OpenGL, pulseaudio and x11
|
||||||
build_options_default+=" opengl pulseaudio x11"
|
build_options_default+=" opengl pulseaudio x11"
|
||||||
|
|
||||||
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" -o "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||||
# Enable OpenGL/ES on ARM platforms
|
# Enable OpenGL/ES on rpi platforms
|
||||||
build_options_default+=" gles"
|
build_options_default+=" gles"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_gles" ]; then
|
if [ "$build_option_gles" ]; then
|
||||||
# libGLESv2.so.1 is dynamically loaded with dlopen.
|
# libGLESv2.so.1 is dynamically loaded with dlopen.
|
||||||
shlib_requires="libGLESv2.so.1"
|
|
||||||
depends+=" libGLES>=1.0"
|
depends+=" libGLES>=1.0"
|
||||||
configure_args+=" --enable-video-opengles"
|
configure_args+=" --enable-video-opengles"
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
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"
|
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"
|
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib"
|
||||||
else
|
else
|
||||||
|
shlib_requires="libGLESv2.so.1"
|
||||||
makedepends+=" glu-devel"
|
makedepends+=" glu-devel"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue