From 85e0dac14f065f64bf0381680f1ca32dd46a292f Mon Sep 17 00:00:00 2001 From: Owen Rafferty Date: Mon, 14 Oct 2019 23:23:58 -0500 Subject: [PATCH] libGL: add wayland build_option --- srcpkgs/libGL/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libGL/template b/srcpkgs/libGL/template index 78f81d3ddcf..1cda435d07f 100644 --- a/srcpkgs/libGL/template +++ b/srcpkgs/libGL/template @@ -7,14 +7,15 @@ build_style=meson configure_args="-Dshared-glapi=true -Dgbm=true -Degl=true -Dgallium-vdpau=true -Dgallium-xvmc=true -Dosmesa=gallium -Dgles1=true -Dgles2=true -Dgallium-va=true -Dlmsensors=true - -Dplatforms=x11,drm,wayland,surfaceless -Dllvm=true + -Dplatforms=x11,drm,$(vopt_if wayland wayland,)surfaceless -Dllvm=true -Db_lto=false" hostmakedepends="flex libxml2-python llvm pkg-config - python3-Mako wayland-protocols wayland-devel" + python3-Mako $(vopt_if wayland 'wayland-protocols wayland-devel')" makedepends="elfutils-devel expat-devel libXdamage-devel libXvMC-devel libXxf86vm-devel libatomic-devel libdrm-devel libffi-devel libva-devel libvdpau-devel libxshmfence-devel ncurses-devel talloc-devel zlib-devel - wayland-devel wayland-protocols llvm libsensors-devel libXrandr-devel" + $(vopt_if wayland 'wayland-devel wayland-protocols') llvm libsensors-devel + libXrandr-devel" short_desc="Graphics library similar to SGI's OpenGL" maintainer="Orphaned " license="MIT, LGPL-2.1-or-later" @@ -23,6 +24,9 @@ changelog="https://www.mesa3d.org/relnotes/${version}.html" distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz" checksum=4cc53ca1a8d12c6ff0e5ea44a5213c05c88447ab50d7e28bb350cd29199f01e9 +build_options="wayland" +build_options_default="wayland" + # Set subpackages manually to set proper rdeps in 32bit pkgs. subpackages="libglapi libgbm libEGL libGLES libOSMesa"