From 0c06829dc71de5f20b9c9da004a7ce793a408f10 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Mon, 6 May 2013 00:50:46 +1000 Subject: [PATCH] mesa3d-32: fix compile with and without llvm-32 --- mesa3d-32/Pkgfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mesa3d-32/Pkgfile b/mesa3d-32/Pkgfile index d73c35bc..ec924d94 100644 --- a/mesa3d-32/Pkgfile +++ b/mesa3d-32/Pkgfile @@ -5,12 +5,19 @@ name=mesa3d-32 version=9.1.2 -release=1 +release=2 source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2) build() { cd Mesa-$version + # Do not fail to compile if llvm is installed and llvm-32 is not installed, + # required for gallium llvm support. + local f + for f in $(grep -r -l llvm-config | xargs); do + sed -i -e 's|llvm-config|llvm-config-32|g' $f + done + autoreconf --install --symlink ./configure --prefix=/usr \ --libdir=/usr/lib32 \