diff options
-rw-r--r-- | libre/mesa/PKGBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libre/mesa/PKGBUILD b/libre/mesa/PKGBUILD index b132b4527..2d8667a4f 100644 --- a/libre/mesa/PKGBUILD +++ b/libre/mesa/PKGBUILD @@ -7,7 +7,8 @@ pkgrel=1.parabola1 arch=('i686' 'x86_64' 'armv7h') makedepends=('python2-mako' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto' 'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'libva' 'wayland' 'elfutils' 'llvm' - 'libomxil-bellagio' 'libclc' 'clang' 'libglvnd' 'libunwind' 'lm_sensors') + 'libomxil-bellagio' 'clang' 'libglvnd' 'lm_sensors') +[ "$CARCH" != "armv7h" ] && makedepends+=('libclc' 'libunwind') url="http://mesa3d.sourceforge.net" license=('custom') source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig} @@ -46,13 +47,15 @@ build() { GALLIUM=r300,r600,radeonsi,nouveau,svga,swrast,virgl,swr DRI=i915,i965,r200,radeon,nouveau,swrast VULKAN=intel,radeon + LIBUNWIND='--enable-libunwind' VDPAU_AND_XA='--enable-xa --enable-vdpau' OPENCL='--enable-opencl --enable-opencl-icd' ;; armv7h) - GALLIUM=freedreno,nouveau,swrast,virgl,swr,vc4,etnaviv,imx + GALLIUM=freedreno,nouveau,swrast,virgl,vc4,etnaviv,imx DRI=nouveau,swrast VULKAN= + LIBUNWIND= VDPAU_AND_XA= OPENCL= ;; @@ -70,7 +73,7 @@ build() { --enable-llvm-shared-libs \ --enable-shared-glapi \ --enable-libglvnd \ - --enable-libunwind \ + $LIBUNWIND \ --enable-lmsensors \ --enable-egl \ --enable-glx \ @@ -98,7 +101,8 @@ build() { package_mesa() { pkgdesc="A free implementation of the OpenGL specification, without nonfree software recommendations in drirc" depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf' - 'libomxil-bellagio' 'libtxc_dxtn' 'libunwind' 'llvm-libs' 'lm_sensors' 'libglvnd') + 'libomxil-bellagio' 'libtxc_dxtn' 'llvm-libs' 'lm_sensors' 'libglvnd') + [ "$CARCH" != "armv7h" ] && depends+=('libunwind') optdepends=('opengl-man-pages: for the OpenGL API man pages' 'mesa-vdpau: for accelerated video playback' 'libva-mesa-driver: for accelerated video playback') @@ -121,10 +125,10 @@ package_mesa() { 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/libwayland*.so* ${pkgdir}/usr/lib/ - cp -rv ${srcdir}/fakeinstall/usr/lib/libswrAVX*.so* ${pkgdir}/usr/lib/ if [ "$CARCH" != "armv7h" ]; then cp -rv ${srcdir}/fakeinstall/usr/lib/libxatracker.so* ${pkgdir}/usr/lib/ + cp -rv ${srcdir}/fakeinstall/usr/lib/libswrAVX*.so* ${pkgdir}/usr/lib/ fi cp -rv ${srcdir}/fakeinstall/usr/include ${pkgdir}/usr |