2013-03-23 09:13:47 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="opengl gles2"
|
|
|
|
desc_option_opengl="Enable support for building the OpenGL surface backend"
|
|
|
|
desc_option_gles2="Enable support for building the GLESv2 surface backend"
|
|
|
|
|
2013-04-06 11:11:05 +02:00
|
|
|
# Enable gl by default on x86.
|
2013-03-23 09:13:47 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-04-06 11:34:29 +02:00
|
|
|
build_options_default="gles2"
|
2013-03-23 09:13:47 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
do_options() {
|
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
configure_args="${configure_args} --enable-gl"
|
|
|
|
else
|
|
|
|
configure_args="${configure_args} --disable-gl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gles2" ]; then
|
|
|
|
configure_args="${configure_args} --enable-egl --enable-glesv2"
|
|
|
|
else
|
|
|
|
configure_args="${configure_args} --disable-egl --disable-glesv2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
|
|
|
makedepends="${makedepends} MesaLib-devel"
|
|
|
|
fi
|
|
|
|
}
|