2012-11-21 11:12:43 -06:00
|
|
|
# Description: Mesa 3D Graphics Library
|
2017-03-02 22:20:48 +11:00
|
|
|
# URL: https://www.mesa3d.org/
|
2013-02-02 01:54:23 +11:00
|
|
|
# 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
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
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)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2015-03-18 23:02:49 -05: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-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 \
|
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 \
|
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 \
|
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 \
|
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
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
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}}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|