main/mesa: re-enable drm platform

prefer libwayland-egl from wayland
This commit is contained in:
Natanael Copa 2018-05-16 19:15:51 +00:00
parent 620c883a5a
commit f49d768294

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
pkgver=18.0.2
pkgrel=0
pkgrel=1
pkgdesc="Mesa DRI OpenGL library"
url="http://www.mesa3d.org"
arch="all"
@ -22,7 +22,8 @@ depends_dev="libdrm-dev dri2proto libxext-dev libxdamage-dev libxcb-dev glproto
makedepends="$depends_dev expat-dev xextproto python3 libxt-dev makedepend
talloc-dev py3-libxml2 flex bison llvm$_llvmver-dev eudev-dev libvdpau-dev
libxvmc-dev gettext zlib-dev libelf-dev py-mako libva-dev
autoconf automake libtool libxxf86vm-dev libx11-dev libxfixes-dev"
autoconf automake libtool libxxf86vm-dev libx11-dev libxfixes-dev
wayland-dev wayland-protocols"
source="https://mesa.freedesktop.org/archive/mesa-$pkgver.tar.xz
glx_ro_text_segm.patch
musl-fix-includes.patch
@ -80,7 +81,7 @@ build() {
--with-dri-drivers=${_dri_drivers} \
--with-vulkan-drivers=${_vulkan_drivers} \
--with-llvm-prefix=/usr/lib/llvm$_llvmver \
--with-platforms=x11,drm \
--with-platforms=x11,drm,wayland \
--enable-llvm \
--enable-llvm-shared-libs \
--enable-shared-glapi \
@ -105,6 +106,10 @@ build() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
# provided by wayland
rm -v "$pkgdir"/usr/lib/libwayland-egl.so*
rm -v "$pkgdir"/usr/lib/pkgconfig/wayland-egl.pc
}
egl() {