cairo: use native GLES implementation on RaspberryPi; GL on anything else.
This commit is contained in:
parent
dd563e5868
commit
a078049b40
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'cairo'.
|
||||
pkgname=cairo
|
||||
version=1.12.16
|
||||
revision=5
|
||||
revision=6
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --disable-lto --enable-tee --enable-egl
|
||||
$(vopt_enable opengl gl) $(vopt_enable gles2 glesv2)"
|
||||
|
@ -22,10 +22,21 @@ pre_configure() {
|
|||
|
||||
# Package build options
|
||||
build_options="gles2 opengl"
|
||||
build_options_default="opengl"
|
||||
|
||||
# On RaspberryPi use GLES, otherwise GL.
|
||||
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||
build_options_default="gles2"
|
||||
else
|
||||
build_options_default="opengl"
|
||||
fi
|
||||
|
||||
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
||||
makedepends+=" MesaLib-devel"
|
||||
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||
# rpi use native GLES/EGL implementation
|
||||
makedepends+=" rpi-firmware-pcfiles"
|
||||
else
|
||||
makedepends+=" MesaLib-devel"
|
||||
fi
|
||||
fi
|
||||
|
||||
cairo-devel_package() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user