2012-11-21 18:12:43 +01:00
|
|
|
# Description: Mesa 3D Graphics Library
|
2017-03-02 12:20:48 +01:00
|
|
|
# URL: https://www.mesa3d.org/
|
2013-02-01 15:54:23 +01:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2015-04-28 11:43:53 +02:00
|
|
|
# Depends on: elfutils-32 eudev-32 expat-32 libdrm-32 libvdpau-32 llvm-32 mesa3d xorg-dri3proto-32 xorg-glproto-32 xorg-libxdamage-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-presentproto-32
|
2012-11-21 18:12:43 +01:00
|
|
|
|
|
|
|
name=mesa3d-32
|
2017-03-02 12:20:48 +01:00
|
|
|
version=13.0.5
|
2015-03-07 11:09:24 +01:00
|
|
|
release=1
|
2015-03-19 05:02:49 +01:00
|
|
|
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/mesa-$version.tar.xz)
|
2012-11-21 18:12:43 +01:00
|
|
|
|
|
|
|
build() {
|
2015-03-19 05:02:49 +01:00
|
|
|
cd mesa-$version
|
2012-11-21 18:12:43 +01:00
|
|
|
|
2013-05-05 16:50:46 +02: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-19 05:02:49 +01:00
|
|
|
autoreconf --force --install --symlink
|
2014-03-19 02:57:26 +01:00
|
|
|
|
2013-11-23 10:16:25 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2015-01-25 07:10:52 +01:00
|
|
|
--sysconfdir=/etc \
|
2012-11-21 18:12:43 +01:00
|
|
|
--libdir=/usr/lib32 \
|
2014-03-19 02:57:26 +01:00
|
|
|
--enable-gallium-llvm \
|
|
|
|
--enable-gbm \
|
|
|
|
--enable-gles1 \
|
|
|
|
--enable-gles2 \
|
|
|
|
--enable-glx-tls \
|
2013-11-23 19:01:19 +01:00
|
|
|
--enable-osmesa \
|
2014-03-19 02:57:26 +01:00
|
|
|
--enable-texture-float \
|
|
|
|
--enable-xa \
|
2014-07-09 14:07:26 +02:00
|
|
|
--enable-vdpau \
|
2014-09-08 13:30:53 +02:00
|
|
|
--enable-llvm-shared-libs \
|
2015-01-25 07:10:52 +01:00
|
|
|
--disable-dependency-tracking \
|
2017-02-15 10:44:19 +01:00
|
|
|
--with-sha1=libcrypto \
|
2016-11-13 02:59:33 +01:00
|
|
|
--with-egl-platforms=x11,drm \
|
2014-03-19 02:57:26 +01:00
|
|
|
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
2017-02-15 10:44:19 +01:00
|
|
|
--with-vulkan-drivers=intel,radeon \
|
2012-11-21 18:12:43 +01:00
|
|
|
--host=i686-pc-linux-gnu
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2014-03-19 02:57:26 +01:00
|
|
|
|
2015-01-25 08:03:04 +01:00
|
|
|
rm -r $PKG/usr/include $PKG/etc
|
2012-11-21 18:12:43 +01:00
|
|
|
}
|