forked from ports/compat-32
48 lines
1.2 KiB
Plaintext
48 lines
1.2 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 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
|
|
|
|
name=mesa3d-32
|
|
version=18.0.2
|
|
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
|
|
|
|
export LDFLAGS="$LDFLAGS -lLLVM"
|
|
|
|
autoreconf --force --install --symlink
|
|
|
|
./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
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/include $PKG/etc
|
|
}
|