aboutsummaryrefslogtreecommitdiffstats
path: root/mesa-nowayland
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-11-22 01:04:48 +0100
committerMattias Andrée <maandree@kth.se>2016-11-22 01:04:48 +0100
commit13aacb8f9439fd3a29ea27ecebe35b006262f3e4 (patch)
treecfacba1b264a98b60c3403ed25fa2f5a62c8fd30 /mesa-nowayland
parentupdate gtk3-nobroadway-nowayland-nocolord (diff)
downloadaur-packages-13aacb8f9439fd3a29ea27ecebe35b006262f3e4.tar.gz
aur-packages-13aacb8f9439fd3a29ea27ecebe35b006262f3e4.tar.bz2
aur-packages-13aacb8f9439fd3a29ea27ecebe35b006262f3e4.tar.xz
update mesa-nowayland and add gtk3-print-backends-nocolord
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--mesa-nowayland/PKGBUILD84
-rw-r--r--mesa-nowayland/remove-libpthread-stubs.patch13
2 files changed, 58 insertions, 39 deletions
diff --git a/mesa-nowayland/PKGBUILD b/mesa-nowayland/PKGBUILD
index 668bf82..7f91ab7 100644
--- a/mesa-nowayland/PKGBUILD
+++ b/mesa-nowayland/PKGBUILD
@@ -3,99 +3,105 @@
# Maintainer of the mesa package: Andreas Radke <andyrtr@archlinux.org>
pkgname=mesa-nowayland
-pkgver=11.0.7
+pkgver=13.0.1
pkgrel=1
arch=('i686' 'x86_64')
-pkgdesc="an open-source implementation of the OpenGL specification"
+pkgdesc="An open-source implementation of the OpenGL specification"
makedepends=('python2-mako' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto'
'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'libva' 'elfutils' 'llvm'
- 'systemd' 'libomxil-bellagio' 'libclc' 'clang')
-depends=('libdrm' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'systemd' 'elfutils'
- 'libomxil-bellagio' 'expat' 'libtxc_dxtn' 'llvm-libs')
+ 'systemd' 'libomxil-bellagio' 'libgcrypt' 'libclc' 'clang')
+depends=('libdrm' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'elfutils'
+ 'libomxil-bellagio' 'libgcrypt' 'libtxc_dxtn' 'llvm-libs')
optdepends=('opengl-man-pages: for the OpenGL API man pages'
'mesa-vdpau: for accelerated video playback'
'libva-mesa-driver: for accelerated video playback')
conflicts=("mesa")
provides=("mesa=$pkgver"
- 'libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel'
- 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri')
-conflicts=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel'
- 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri')
-replaces=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel'
'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri')
+conflicts=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri')
+replaces=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri')
url="http://mesa3d.sourceforge.net"
license=('custom')
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/mesa-${pkgver}.tar.xz
- LICENSE)
-sha256sums=('e7e90a332ede6c8fd08eff90786a3fd1605a4e62ebf3a9b514047838194538cb'
- '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2')
+ LICENSE
+ remove-libpthread-stubs.patch)
+sha256sums=('71962fb2bf77d33b0ad4a565b490dbbeaf4619099c6d9722f04a73187957a731'
+ '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
+ '75ab53ad44b95204c788a2988e97a5cb963bdbf6072a5466949a2afb79821c8f')
prepare() {
- cd ${srcdir}/?esa-*
+ cd ${srcdir}/mesa-${pkgver}
+
+ # Now mesa checks for libpthread-stubs - so remove the check
+ patch -Np1 -i ../remove-libpthread-stubs.patch
- # Fix detection of libLLVM when built with CMake
- sed -i 's/LLVM_SO_NAME=.*/LLVM_SO_NAME=LLVM/' configure
+ autoreconf -fiv
}
build() {
- cd ${srcdir}/?esa-*
-
- #autoreconf -vfi # our automake is far too new for their build system :)
+ cd ${srcdir}/mesa-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
- --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \
+ --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
--with-egl-platforms=x11,drm \
- --enable-llvm-shared-libs \
- --enable-egl \
- --enable-gbm \
+ --with-vulkan-drivers=intel,radeon \
+ --with-sha1=libgcrypt \
+ --disable-xvmc \
--enable-gallium-llvm \
+ --enable-llvm-shared-libs \
--enable-shared-glapi \
+ --enable-egl \
--enable-glx \
--enable-glx-tls \
- --enable-dri \
- --enable-osmesa \
--enable-gles1 \
--enable-gles2 \
+ --enable-gbm \
+ --enable-dri \
+ --enable-osmesa \
--enable-texture-float \
--enable-xa \
--enable-vdpau \
--enable-omx \
--enable-nine \
- --enable-opencl --enable-opencl-icd \
+ --enable-opencl \
+ --enable-opencl-icd \
--with-clang-libdir=/usr/lib
- # --help
-
make
# fake installation
- mkdir $srcdir/fakeinstall
+ mkdir -p $srcdir/fakeinstall
make DESTDIR=${srcdir}/fakeinstall install
}
package() {
install -m755 -d ${pkgdir}/etc
- mv -v ${srcdir}/fakeinstall/etc/drirc ${pkgdir}/etc
+ cp -rv ${srcdir}/fakeinstall/etc/drirc ${pkgdir}/etc
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
# ati-dri, nouveau-dri, intel-dri, svga-dri, swrast
- mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/* ${pkgdir}/usr/lib/xorg/modules/dri
+ cp -av ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/* ${pkgdir}/usr/lib/xorg/modules/dri
- mv -v ${srcdir}/fakeinstall/usr/lib/bellagio ${pkgdir}/usr/lib
- mv -v ${srcdir}/fakeinstall/usr/lib/d3d ${pkgdir}/usr/lib
- mv -v ${srcdir}/fakeinstall/usr/lib/*.so* ${pkgdir}/usr/lib/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/bellagio ${pkgdir}/usr/lib
+ cp -rv ${srcdir}/fakeinstall/usr/lib/d3d ${pkgdir}/usr/lib
+ cp -rv ${srcdir}/fakeinstall/usr/lib/lib{gbm,glapi}.so* ${pkgdir}/usr/lib/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/libOSMesa.so* ${pkgdir}/usr/lib/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/libxatracker.so* ${pkgdir}/usr/lib/
- mv -v ${srcdir}/fakeinstall/usr/include ${pkgdir}/usr
- mv -v ${srcdir}/fakeinstall/usr/lib/pkgconfig ${pkgdir}/usr/lib/
+ cp -rv ${srcdir}/fakeinstall/usr/include ${pkgdir}/usr
+ cp -rv ${srcdir}/fakeinstall/usr/lib/pkgconfig ${pkgdir}/usr/lib/
+ # remove vulkan headers
+ rm -rf ${pkgdir}/usr/include/vulkan
+
install -m755 -d ${pkgdir}/usr/lib/mesa
# move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ?
- mv -v ${pkgdir}/usr/lib/libGL.so* ${pkgdir}/usr/lib/mesa/
- mv -v ${pkgdir}/usr/lib/libEGL.so* ${pkgdir}/usr/lib/mesa/
- mv -v ${pkgdir}/usr/lib/libGLES*.so* ${pkgdir}/usr/lib/mesa/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/libGL.so* ${pkgdir}/usr/lib/mesa/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/libEGL.so* ${pkgdir}/usr/lib/mesa/
+ cp -rv ${srcdir}/fakeinstall/usr/lib/libGLES*.so* ${pkgdir}/usr/lib/mesa/
install -m755 -d "${pkgdir}/usr/share/licenses/mesa"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa/"
diff --git a/mesa-nowayland/remove-libpthread-stubs.patch b/mesa-nowayland/remove-libpthread-stubs.patch
new file mode 100644
index 0000000..efe8aad
--- /dev/null
+++ b/mesa-nowayland/remove-libpthread-stubs.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 54416b4..8a708d3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -824,7 +824,7 @@ test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
+
+ dnl pthread-stubs is mandatory on targets where it exists
+ case "$host_os" in
+-cygwin* )
++cygwin* | linux* )
+ pthread_stubs_possible="no"
+ ;;
+ * )