2012-11-21 11:12:43 -06:00
|
|
|
# Description: Mesa 3D Graphics Library
|
|
|
|
# URL: http://www.mesa3d.org
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2013-11-16 02:36:28 +11:00
|
|
|
# Depends on: expat-32 libdrm-32 libxml2-python-32 talloc-32 xorg-dri2proto-32 xorg-glproto-32 xorg-libxdamage-32 xorg-libxt-32 xorg-libxvmc-32 xorg-libxxf86vm-32 mesa3d
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=mesa3d-32
|
2013-12-22 13:31:33 +11:00
|
|
|
version=9.2.5
|
2014-01-04 11:23:31 -06:00
|
|
|
release=2
|
2012-11-21 11:12:43 -06:00
|
|
|
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd Mesa-$version
|
|
|
|
|
2013-11-23 20:16:25 +11:00
|
|
|
# Do not fail to compile if llvm is installed and
|
|
|
|
# llvm-32 is not installed,
|
2013-05-06 00:50:46 +10:00
|
|
|
# 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
|
|
|
|
|
2012-11-21 11:12:43 -06:00
|
|
|
autoreconf --install --symlink
|
2013-11-23 20:16:25 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2012-11-21 11:12:43 -06:00
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--with-dri-drivers=i915,i965,r200,radeon,swrast,nouveau \
|
|
|
|
--with-gallium-drivers=i915,r600,svga,nouveau \
|
2014-01-04 11:23:31 -06:00
|
|
|
--enable-texture-float --enable-glx-tls \
|
2013-11-24 05:01:19 +11:00
|
|
|
--enable-osmesa \
|
2012-11-21 11:12:43 -06:00
|
|
|
--host=i686-pc-linux-gnu
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2013-11-23 20:16:25 +11:00
|
|
|
rm -r $PKG/usr/{etc,include}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|