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() {