From 004985d7dc90c5886dd110a57f88dce74b21d75c Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 30 Apr 2019 18:10:23 +0200 Subject: [PATCH] xf86-video-mga: only enable dri on some platforms Closes: #11400 [via git-merge-pr] --- srcpkgs/xf86-video-mga/patches/cross.patch | 2 +- srcpkgs/xf86-video-mga/template | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/xf86-video-mga/patches/cross.patch b/srcpkgs/xf86-video-mga/patches/cross.patch index dd3c494063c..e9de192256c 100644 --- a/srcpkgs/xf86-video-mga/patches/cross.patch +++ b/srcpkgs/xf86-video-mga/patches/cross.patch @@ -38,7 +38,7 @@ Remove some checks that break cross. - DRI="no" - fi -fi -+DRI="yes" ++DRI="no" AC_MSG_RESULT([$DRI]) AM_CONDITIONAL(DRI, test "x$DRI" = xyes) diff --git a/srcpkgs/xf86-video-mga/template b/srcpkgs/xf86-video-mga/template index 4a60daf3a0e..23a5f463e2c 100644 --- a/srcpkgs/xf86-video-mga/template +++ b/srcpkgs/xf86-video-mga/template @@ -17,6 +17,12 @@ lib32disabled=yes LDFLAGS="-Wl,-z,lazy" pre_configure() { + case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*|aarch64*|ppc*) + sed -i 's/^DRI="no"/DRI="yes"/' configure.ac + ;; + *) ;; + esac autoreconf -if } post_install() {