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
|
2015-03-07 20:15:34 +11:00
|
|
|
# Depends on: elfutils-32 expat-32 libdrm-32 libvdpau-32 libxml2-python-32 llvm-32 talloc-32 xorg-dri2proto-32 xorg-dri3proto-32 xorg-glproto-32 xorg-libxdamage-32 xorg-libxshmfence-32 xorg-libxt-32 xorg-libxvmc-32 xorg-libxxf86vm-32 eudev-32 mesa3d xorg-presentproto-32
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=mesa3d-32
|
2015-03-07 20:15:34 +11:00
|
|
|
version=10.4.5
|
|
|
|
release=2
|
|
|
|
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2
|
|
|
|
0196-gallivm-Update-for-RTDyldMemoryManager-becoming-an-u.patch)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2015-03-07 20:15:34 +11:00
|
|
|
cd Mesa-$version
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2013-05-06 00:50:46 +10:00
|
|
|
local f
|
|
|
|
for f in $(grep -r -l llvm-config | xargs); do
|
|
|
|
sed -i -e 's|llvm-config|llvm-config-32|g' $f
|
|
|
|
done
|
|
|
|
|
2015-03-07 20:15:34 +11:00
|
|
|
patch -p1 -i $SRC/0196-gallivm-Update-for-RTDyldMemoryManager-becoming-an-u.patch
|
|
|
|
autoreconf --install --symlink
|
2014-03-19 12:57:26 +11:00
|
|
|
|
2013-11-23 20:16:25 +11:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2015-01-25 17:10:52 +11:00
|
|
|
--sysconfdir=/etc \
|
2012-11-21 11:12:43 -06:00
|
|
|
--libdir=/usr/lib32 \
|
2014-03-19 12:57:26 +11:00
|
|
|
--enable-gallium-llvm \
|
|
|
|
--enable-gbm \
|
|
|
|
--enable-gles1 \
|
|
|
|
--enable-gles2 \
|
|
|
|
--enable-glx-tls \
|
2013-11-24 05:01:19 +11:00
|
|
|
--enable-osmesa \
|
2014-03-19 12:57:26 +11:00
|
|
|
--enable-texture-float \
|
|
|
|
--enable-xa \
|
2014-07-09 22:07:26 +10:00
|
|
|
--enable-vdpau \
|
2014-09-08 21:30:53 +10:00
|
|
|
--enable-llvm-shared-libs \
|
2015-01-25 17:10:52 +11:00
|
|
|
--disable-dependency-tracking \
|
2014-03-19 12:57:26 +11:00
|
|
|
--with-egl-platforms=drm \
|
|
|
|
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
2012-11-21 11:12:43 -06:00
|
|
|
--host=i686-pc-linux-gnu
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2014-03-19 12:57:26 +11:00
|
|
|
|
2015-01-25 18:03:04 +11:00
|
|
|
rm -r $PKG/usr/include $PKG/etc
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|