forked from ports/compat-32
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
# Description: Mesa 3D Graphics Library
|
|
# URL: https://www.mesa3d.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# 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
|
|
version=18.3.6
|
|
release=1
|
|
source=(https://mesa.freedesktop.org/archive/mesa-$version.tar.xz)
|
|
|
|
build() {
|
|
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
|
|
|
|
autoreconf --force --install --symlink
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=/usr/lib32 \
|
|
--host=i686-pc-linux-gnu \
|
|
--enable-llvm \
|
|
--enable-gbm \
|
|
--enable-gles1 \
|
|
--enable-gles2 \
|
|
--enable-glx-tls \
|
|
--enable-osmesa \
|
|
--enable-texture-float \
|
|
--enable-xa \
|
|
--enable-vdpau \
|
|
--enable-llvm-shared-libs \
|
|
--disable-dependency-tracking \
|
|
--with-platforms=x11,drm \
|
|
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
|
--with-vulkan-drivers=intel,radeon \
|
|
--enable-libglvnd
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# 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*
|
|
|
|
rm -r $PKG/usr/{include,share/{drirc.d,glvnd}}
|
|
}
|