55 lines
1.4 KiB
Plaintext
Raw Normal View History

# Description: Mesa 3D Graphics Library
2017-03-02 22:20:48 +11:00
# URL: https://www.mesa3d.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2018-09-28 22:17:51 +10:00
# Depends on: elfutils-32 expat-32 libdrm-32 libglvnd-32 libvdpau-32 llvm-32 xorg-libxdamage-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32 xorg-libxrandr-32 mesa3d
name=mesa3d-32
2019-04-11 08:50:29 +10:00
version=18.3.6
2015-03-07 21:09:24 +11:00
release=1
2018-02-19 19:55:00 +11:00
source=(https://mesa.freedesktop.org/archive/mesa-$version.tar.xz)
build() {
2015-03-18 23:02:49 -05:00
cd mesa-$version
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-18 23:02:49 -05:00
autoreconf --force --install --symlink
2014-03-19 12:57:26 +11:00
2018-12-17 00:18:58 +11:00
CONFIG_SHELL=/bin/bash \
./configure \
--prefix=/usr \
2015-01-25 17:10:52 +11:00
--sysconfdir=/etc \
--libdir=/usr/lib32 \
2018-01-18 21:50:05 +11:00
--host=i686-pc-linux-gnu \
2017-05-31 00:10:29 +10:00
--enable-llvm \
2014-03-19 12:57:26 +11:00
--enable-gbm \
--enable-gles1 \
--enable-gles2 \
--enable-glx-tls \
--enable-osmesa \
2014-03-19 12:57:26 +11:00
--enable-texture-float \
--enable-xa \
--enable-vdpau \
--enable-llvm-shared-libs \
2015-01-25 17:10:52 +11:00
--disable-dependency-tracking \
2017-05-31 00:10:29 +10:00
--with-platforms=x11,drm \
2014-03-19 12:57:26 +11:00
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
2018-08-15 21:18:43 +10:00
--with-vulkan-drivers=intel,radeon \
--enable-libglvnd
make
make DESTDIR=$PKG install
2014-03-19 12:57:26 +11:00
2018-08-15 21:18:43 +10:00
# indirect rendering symlink
ln -s libGLX_mesa.so.0 $PKG/usr/lib32/libGLX_indirect.so.0
# remove libGLES* for libglvnd; see thread at
# https://lists.freedesktop.org/archives/mesa-maintainers/2017-March/000055.html
rm $PKG/usr/lib32/libGLES*
2018-12-17 00:18:58 +11:00
rm -r $PKG/usr/{include,share/{drirc.d,glvnd}}
}