[arch-commits] Commit in mesa/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Aug 19 10:09:58 UTC 2012


    Date: Sunday, August 19, 2012 @ 06:09:58
  Author: andyrtr
Revision: 165433

upgpkg: mesa 8.0.4-3

add drm to egl-platform; minor dependency fixes

Modified:
  mesa/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++----------
 1 file changed, 26 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-08-19 07:58:38 UTC (rev 165432)
+++ PKGBUILD	2012-08-19 10:09:58 UTC (rev 165433)
@@ -15,10 +15,10 @@
   else
     pkgver=8.0.4
 fi
-pkgrel=2
+pkgrel=3
 arch=('i686' 'x86_64')
 makedepends=('glproto>=1.4.15' 'libdrm>=2.4.30' 'libxxf86vm>=1.1.1' 'libxdamage>=1.1.3' 'expat>=2.0.1' 'libx11>=1.4.99.1' 'libxt>=1.1.1' 
-             'gcc-libs>=4.7.1-5' 'dri2proto>=2.6' 'python2' 'libxml2' 'imake' 'llvm' 'udev>=183')
+             'gcc-libs>=4.7.1-5' 'dri2proto>=2.6' 'python2' 'libxml2' 'imake' 'llvm' 'systemd-tools')
 url="http://mesa3d.sourceforge.net"
 license=('custom')
 source=(LICENSE
@@ -48,7 +48,9 @@
     --with-dri-driverdir=/usr/lib/xorg/modules/dri \
     --with-gallium-drivers=r300,r600,nouveau,svga,swrast \
     --enable-gallium-llvm \
-   --enable-gallium-egl \
+    --enable-egl \    
+    --enable-gallium-egl \
+    --with-egl-platforms=x11,drm \
     --enable-shared-glapi \
     --enable-gbm \
     --enable-glx-tls \
@@ -57,7 +59,6 @@
     --enable-osmesa \
     --enable-gles1 \
     --enable-gles2 \
-    --enable-egl \
     --enable-texture-float \
     --enable-xa \
     --enable-shared-dricore
@@ -71,7 +72,9 @@
     --with-gallium-drivers=r300,r600,svga,swrast \
     --with-dri-drivers=i915,i965,r200,radeon,swrast \
     --enable-gallium-llvm \
+    --enable-egl \
     --enable-gallium-egl \
+    --with-egl-platforms=x11,drm \
     --enable-shared-glapi \
     --enable-gbm \
     --enable-glx-tls \
@@ -80,7 +83,6 @@
     --enable-osmesa \
     --enable-gles1 \
     --enable-gles2 \
-    --enable-egl \
     --enable-texture-float \
     --enable-xa \
     --enable-shared-dricore
@@ -132,12 +134,15 @@
 }
 
 package_libgbm() {
-  depends=('glibc')
+  depends=('systemd-tools')
   pkgdesc="Mesa gbm library"
 
   cd ${srcdir}/?esa-*   
-  install -m755 -d "${pkgdir}/usr/lib"
+  install -m755 -d ${pkgdir}/usr/{include,lib/gbm}
   bin/minstall lib/libgbm.so* "${pkgdir}/usr/lib/"
+  bin/minstall src/gbm/main/gbm.h "${pkgdir}/usr/include/"
+  bin/minstall lib/libgbm.so* "${pkgdir}/usr/lib/"
+  bin/minstall lib/gbm/gbm_gallium_drm.so* "${pkgdir}/usr/lib/gbm/"
   install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
   bin/minstall src/gbm/main/gbm.pc "${pkgdir}/usr/lib/pkgconfig/"
 
@@ -167,7 +172,7 @@
 }
 
 package_libegl() {
-  depends=('libglapi' 'libdrm' 'libxext' 'libxfixes' 'udev' 'khrplatform-devel')
+  depends=('libglapi' 'libdrm' 'libxext' 'libxfixes' 'libgbm' 'khrplatform-devel')
   pkgdesc="Mesa EGL libraries and headers"
 
   cd ${srcdir}/?esa-*   
@@ -218,12 +223,14 @@
   rm -f "${pkgdir}/usr/lib/libEGL"*
   rm -rf "${pkgdir}/usr/lib/egl"
   rm -f "${pkgdir}/usr/lib/libOSMesa"*
+  rm -rf "${pkgdir}/usr/lib/gbm"
   rm -f ${pkgdir}/usr/lib/pkgconfig/{glesv1_cm.pc,glesv2.pc,egl.pc,osmesa.pc,gbm.pc}
   rm -rf "${pkgdir}/usr/lib/xorg"
   rm -f "${pkgdir}/usr/include/GL/glew.h"
   rm -f "${pkgdir}/usr/include/GL/glxew.h"
   rm -f "${pkgdir}/usr/include/GL/wglew.h"
   rm -f "${pkgdir}/usr/include/GL/glut.h"
+  rm -f "${pkgdir}/usr/include/gbm.h"
   rm -rf ${pkgdir}/usr/include/{GLES,GLES2,EGL,KHR}
 
   install -m755 -d "${pkgdir}/usr/share/licenses/mesa"
@@ -231,7 +238,7 @@
 }
 
 package_ati-dri() {
-  depends=("libgl=${pkgver}")
+  depends=("libgl=${pkgver}" 'libffi')
   pkgdesc="Mesa DRI radeon/r200 + Gallium3D r300,r600 drivers for AMD/ATI Radeon"
   conflicts=('xf86-video-ati<6.9.0-6')
 
@@ -241,6 +248,11 @@
   # gallium3D driver for r300,r600
   make -C ${srcdir}/?esa-*/src/gallium/targets/dri-r300 DESTDIR="${pkgdir}" install
   make -C ${srcdir}/?esa-*/src/gallium/targets/dri-r600 DESTDIR="${pkgdir}" install
+  # gallium egl drivers
+  cd ${srcdir}/?esa-*
+  install -m755 -d "${pkgdir}/usr/lib/gbm"
+  bin/minstall lib/gbm/pipe_r{300,600}.so* "${pkgdir}/usr/lib/gbm/"
+
 }
 
 package_intel-dri() {
@@ -262,8 +274,12 @@
 }
 
 package_svga-dri() {
-  depends=("mesa=${pkgver}")
+  depends=("mesa=${pkgver}" 'libffi')
   pkgdesc="Gallium3D VMware guest GL driver"
 
   make -C ${srcdir}/?esa-*/src/gallium/targets/dri-vmwgfx DESTDIR="${pkgdir}" install
+  # gallium egl driver
+  cd ${srcdir}/?esa-*
+  install -m755 -d "${pkgdir}/usr/lib/gbm"
+  bin/minstall lib/gbm/pipe_vmwgfx.so* "${pkgdir}/usr/lib/gbm/"
 }




More information about the arch-commits mailing list