Skip to content

Instantly share code, notes, and snippets.

Created September 30, 2016 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3b153d5bc37bcd9e17ad01d71c13504a to your computer and use it in GitHub Desktop.
Save anonymous/3b153d5bc37bcd9e17ad01d71c13504a to your computer and use it in GitHub Desktop.
Pkgfile
# Description: Mesa 3D Graphics Library
# URL: http://www.mesa3d.org
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
# Depends on: elfutils expat libdrm libvdpau llvm xorg-dri3proto xorg-glproto xorg-libxdamage xorg-libxshmfence xorg-libxvmc xorg-presentproto xorg-libxxf86vm
# Optional: nettle
name=mesa3d
version=12.0.3
release=1
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/mesa-$version.tar.xz)
build() {
cd mesa-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-gallium-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-egl-platforms=x11,drm \
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau
make
make DESTDIR=$PKG install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment