summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r--extra/mesa/PKGBUILD35
1 files changed, 27 insertions, 8 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 588ad4c7f..0b77550ce 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 154038 2012-03-21 20:31:55Z andyrtr $
+# $Id: PKGBUILD 159247 2012-05-19 08:19:03Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=mesa
-pkgname=('mesa' 'libgl' 'osmesa' 'libglapi' 'libgles' 'libegl' 'khrplatform-devel' 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
+pkgname=('mesa' 'libgl' 'osmesa' 'libglapi' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
#_git=true
_gitdate=20111031
@@ -13,7 +13,7 @@ if [ "${_git}" = "true" ]; then
pkgver=7.10.99.git20110709
#pkgver=7.11
else
- pkgver=8.0.2
+ pkgver=8.0.3
fi
pkgrel=1
arch=('i686' 'x86_64')
@@ -33,7 +33,7 @@ if [ "${_git}" = "true" ]; then
)
fi
md5sums=('5c65a0fe315dd347e09b1f2826a1df5a'
- 'a368104e5700707048dc3e8691a9a7a1')
+ 'cc5ee15e306b8c15da6a478923797171')
build() {
cd ${srcdir}/?esa-*
@@ -44,7 +44,9 @@ if [ "${_git}" = "true" ]; then
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
--with-gallium-drivers=r300,r600,nouveau,svga,swrast \
--enable-gallium-llvm \
- --enable-gallium-egl --enable-shared-glapi\
+ --enable-gallium-egl \
+ --enable-shared-glapi \
+ --enable-gbm \
--enable-glx-tls \
--enable-dri \
--enable-glx \
@@ -55,7 +57,7 @@ if [ "${_git}" = "true" ]; then
--enable-texture-float \
--enable-xa \
--enable-shared-dricore
-
+ #--enable-gbm \
# --enable-gallium-svga \
else
@@ -64,7 +66,9 @@ if [ "${_git}" = "true" ]; then
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
--with-gallium-drivers=r300,r600,nouveau,svga,swrast \
--enable-gallium-llvm \
- --enable-gallium-egl --enable-shared-glapi\
+ --enable-gallium-egl \
+ --enable-shared-glapi \
+ --enable-gbm \
--enable-glx-tls \
--enable-dri \
--enable-glx \
@@ -122,6 +126,20 @@ package_libglapi() {
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libglapi/"
}
+package_libgbm() {
+ depends=('glibc')
+ pkgdesc="Mesa gbm library"
+
+ cd ${srcdir}/?esa-*
+ install -m755 -d "${pkgdir}/usr/lib"
+ bin/minstall lib/libgbm.so* "${pkgdir}/usr/lib/"
+ install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
+ bin/minstall src/gbm/main/gbm.pc "${pkgdir}/usr/lib/pkgconfig/"
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/libgbm"
+ install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libgbm/"
+}
+
package_libgles() {
depends=('libglapi' 'khrplatform-devel')
pkgdesc="Mesa GLES libraries and headers"
@@ -190,11 +208,12 @@ package_mesa() {
rm -f "${pkgdir}/usr/lib/libGL.so"*
rm -f "${pkgdir}/usr/lib/libglapi.so"*
+ rm -f "${pkgdir}/usr/lib/libgbm.so"*
rm -f "${pkgdir}/usr/lib/libGLESv"*
rm -f "${pkgdir}/usr/lib/libEGL"*
rm -rf "${pkgdir}/usr/lib/egl"
rm -f "${pkgdir}/usr/lib/libOSMesa"*
- rm -f ${pkgdir}/usr/lib/pkgconfig/{glesv1_cm.pc,glesv2.pc,egl.pc,osmesa.pc}
+ 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"