summaryrefslogtreecommitdiff
path: root/staging/mesa
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
committerroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
commite7552010f531ef1b114352f0ce71a307360bf1d4 (patch)
treed37bd67211f2dc084113f36b80f2b4b5b9622aa5 /staging/mesa
parent777466db27694f0cad10a7159ba66f2a2b39a516 (diff)
Sat Oct 6 00:25:32 PDT 2012
Diffstat (limited to 'staging/mesa')
-rw-r--r--staging/mesa/PKGBUILD33
-rw-r--r--staging/mesa/pthread_fix.diff23
2 files changed, 43 insertions, 13 deletions
diff --git a/staging/mesa/PKGBUILD b/staging/mesa/PKGBUILD
index 2b8d95b63..92e1705b6 100644
--- a/staging/mesa/PKGBUILD
+++ b/staging/mesa/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 167550 2012-10-02 17:40:28Z andyrtr $
+# $Id: PKGBUILD 168066 2012-10-05 15:41:36Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
@@ -6,7 +6,7 @@ pkgbase=mesa
pkgname=('libglapi' 'libgl' 'mesa' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' 'ati-dri' 'intel-dri' 'svga-dri' 'nouveau-dri')
_git=true
-_gitdate=20121002
+_gitdate=20121005
#_git=false
if [ "${_git}" = "true" ]; then
@@ -22,26 +22,25 @@ url="http://mesa3d.sourceforge.net"
license=('custom')
options=('!libtool')
source=(LICENSE
- mesa-radeon-parallel-make.diff)
+ pthread_fix.diff)
if [ "${_git}" = "true" ]; then
# mesa git shot from 9.0 branch - see for state: http://cgit.freedesktop.org/mesa/mesa/log/?h=9.0
#source=(${source[@]} 'ftp://ftp.archlinux.org/other/mesa/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698.tar.gz')
- source=(${source[@]} "MesaLib-git${_gitdate}.zip"::"http://cgit.freedesktop.org/mesa/mesa/snapshot/mesa-604cd6b966d060334fdaa11ae8444797d54d3142.tar.gz")
+ source=(${source[@]} "MesaLib-git${_gitdate}.zip"::"http://cgit.freedesktop.org/mesa/mesa/snapshot/mesa-542f6feda9bf18267dbd337943a5e871400d425a.tar.gz")
else
source=(${source[@]} "ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2"
#source=(${source[@]} "ftp://ftp.freedesktop.org/pub/mesa/8.0/MesaLib-8.0-rc2.tar.bz2"
)
fi
md5sums=('5c65a0fe315dd347e09b1f2826a1df5a'
- '5dca6edbe6b636c59c2e64f77271f12a'
- '71af5320af6873920384d245f103b892')
+ '03956ac54a44467678120f485b626633'
+ '52760839a596df5058fcbb63a2bb10da')
build() {
cd ${srcdir}/?esa-*
- # fix parallel build - http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/radeon/Makefile?id=cebbdd4ac23725963207bf6f8fc7101150e6065f
- # and the next commit - http://cgit.freedesktop.org/mesa/mesa/commit/?id=2baaa5c7eb21517f0197bfd91154e9b4886fbb1b
- patch -Np1 -i ${srcdir}/mesa-radeon-parallel-make.diff
+ # build fix from master http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd4fde8f674f5e3efa19e929f97de4ecfd82391b
+ patch -Np1 -i ${srcdir}/pthread_fix.diff
COMMONOPTS="--prefix=/usr \
--sysconfdir=/etc \
@@ -119,7 +118,8 @@ package_libgl() {
}
package_mesa() {
- depends=('libgl' 'libx11>=1.5.0' 'libxt>=1.1.3' 'gcc-libs>=4.7.1-6') # check pkg/mesa/usr/lib/pkgconfig/gl.pc
+ # check also gl.pc
+ depends=('libgl' 'libx11>=1.5.0' 'libxext>=1.3.1' 'libxdamage' 'libxfixes' 'libxcb' 'libxxf86vm')
optdepends=('opengl-man-pages: for the OpenGL API man pages')
pkgdesc="Mesa 3-D graphics libraries and include files"
@@ -136,12 +136,18 @@ package_mesa() {
}
package_osmesa() {
- depends=('gcc-libs')
+ depends=('libglapi' 'gcc-libs')
optdepends=('opengl-man-pages: for the OpenGL API man pages')
pkgdesc="Mesa 3D off-screen rendering library"
-
+
+ # fix linking because of splitted package
+ make -C ${srcdir}/?esa-*/src/mapi/shared-glapi DESTDIR="${pkgdir}" install
+
make -C ${srcdir}/?esa-*/src/mesa/drivers/osmesa DESTDIR="${pkgdir}" install
+ # fix linking because of splitted package - cleanup
+ make -C ${srcdir}/?esa-*/src/mapi/shared-glapi DESTDIR="${pkgdir}" uninstall
+
install -m755 -d "${pkgdir}/usr/share/licenses/osmesa"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/osmesa/"
}
@@ -180,7 +186,8 @@ package_libgles() {
}
package_libegl() {
- depends=('libxext' 'libxfixes' 'libgbm' 'khrplatform-devel')
+ # check also egl.pc
+ depends=('libx11' 'libxext' 'libxdamage' 'libxfixes' 'libxxf86vm' 'libxcb' 'libgbm' 'khrplatform-devel')
pkgdesc="Mesa EGL libraries and headers"
make -C ${srcdir}/?esa-*/src/gallium/targets/egl-static DESTDIR="${pkgdir}" install
diff --git a/staging/mesa/pthread_fix.diff b/staging/mesa/pthread_fix.diff
new file mode 100644
index 000000000..bdfe2d865
--- /dev/null
+++ b/staging/mesa/pthread_fix.diff
@@ -0,0 +1,23 @@
+From dd4fde8f674f5e3efa19e929f97de4ecfd82391b Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Thu, 27 Sep 2012 22:49:52 +0000
+Subject: build: Set PTHREAD_LIBS for pkgconfig files if empty
+
+---
+diff --git a/configure.ac b/configure.ac
+index 770df2f..dc2720d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -509,6 +509,10 @@ AC_CHECK_DECLS([signbit],[],
+
+ dnl Check for pthreads
+ AX_PTHREAD
++dnl AX_PTHREADS leaves PTHREAD_LIBS empty for gcc and sets PTHREAD_CFLAGS
++dnl to -pthread, which causes problems if we need -lpthread to appear in
++dnl pkgconfig files.
++test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
+
+ dnl SELinux awareness.
+ AC_ARG_ENABLE([selinux],
+--
+cgit v0.9.0.2-2-gbebe