From 5d9e43e2246de3d18b1a0eb17c3c05902eba3375 Mon Sep 17 00:00:00 2001 From: Márcio Silva Date: Mon, 11 Jun 2012 16:06:33 -0300 Subject: adding libdrm-git package to ~coadde --- ~coadde/libdrm-git/PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ~coadde/libdrm-git/PKGBUILD diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD new file mode 100644 index 000000000..faced3da9 --- /dev/null +++ b/~coadde/libdrm-git/PKGBUILD @@ -0,0 +1,61 @@ +# Arch libdrm Maintainers: +# Jan de Groot +# Andreas Radke +# Maintainer (Parabola): Márcio Silva + +pkgname=libdrm-git +pkgver=20120611 +pkgrel=2 +pkgdesc="Userspace interface to kernel DRM services" +arch=('i686' 'x86_64' 'mips64el') +license=('MIT') +depends=('libpciaccess') +provides=('libdrm=2.4.35') +makedepends=('git' 'cairo' 'udev') +options=('!libtool') +url="http://dri.freedesktop.org/" +conflicts=('libdrm') + +_gitroot='git://git.freedesktop.org/git/mesa/drm' +_gitname='drm' + +build() { + + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + sed -i 's/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)//' configure.ac + + ./autogen.sh + ./configure --prefix=/usr \ + --enable-udev \ + --enable-intel \ + --enable-radeon \ + --enable-vmwgfx-experimental-api \ + --enable-nouveau + make V=1 +} + +check() { + cd "$srcdir/$_gitname-build" + make -k check +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir" install +} -- cgit v1.2.3 From 4c4ef7c0a3a748e6c0bbc488752410886cf0591e Mon Sep 17 00:00:00 2001 From: Márcio Silva Date: Mon, 11 Jun 2012 16:30:47 -0300 Subject: adding glproto-git package to ~coadde --- ~coadde/glproto-git/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ~coadde/glproto-git/PKGBUILD diff --git a/~coadde/glproto-git/PKGBUILD b/~coadde/glproto-git/PKGBUILD new file mode 100644 index 000000000..b649dce94 --- /dev/null +++ b/~coadde/glproto-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: kfgz +# Contributor: Cilyan Olowen +# Maintainer (Parabola): Márcio Silva + +pkgname=glproto-git +pkgver=20120611 +pkgrel=1 +pkgdesc="X11 OpenGL extension wire protocol" +arch=('i686' 'x86_64' 'mips64el') +url="http://xorg.freedesktop.org/" +license=('custom') +provides=('glproto' 'glproto=1.4.15') +makedepends=('xorg-util-macros>=1.2' 'git') +conflicts=('glproto') +#groups=('xorg') + +_gitroot="git://git.freedesktop.org/git/xorg/proto/glproto" +_gitname="glproto" + +build() { + cd "${srcdir}" + msg "Connecting to git.freedesktop.org GIT server...." + + if [ -d "${srcdir}"/${_gitname} ] ; then + cd "${_gitname}" && git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} + fi + + msg "GIT checkout done or server timeout" + + msg "Creating build directory" + if [ -d "${srcdir}"/${_gitname}-build ]; then rm -rf "${srcdir}"/${_gitname}-build; fi + cp -R "${srcdir}"/${_gitname} "${srcdir}"/${_gitname}-build + + msg "Starting make..." + cd "${srcdir}"/${_gitname}-build + ./autogen.sh --prefix=/usr + make +} + +package() { + cd "${srcdir}"/${_gitname}-build + make DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname} + install -m644 "${srcdir}"/${_gitname-build}/COPYING \ + "${pkgdir}"/usr/share/licenses/${pkgname}/ +} -- cgit v1.2.3 From ed761ffd6cbc0a9e658f738c9b53c7679643714e Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Mon, 11 Jun 2012 23:33:19 -0300 Subject: update libdrm-git package --- ~coadde/libdrm-git/COPYING | 48 +++++++++++++++++++++ ~coadde/libdrm-git/PKGBUILD | 48 ++++++++++++--------- ~coadde/libdrm-git/no-pthread-stubs.patch | 70 +++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+), 19 deletions(-) create mode 100644 ~coadde/libdrm-git/COPYING create mode 100644 ~coadde/libdrm-git/no-pthread-stubs.patch diff --git a/~coadde/libdrm-git/COPYING b/~coadde/libdrm-git/COPYING new file mode 100644 index 000000000..6e74c337c --- /dev/null +++ b/~coadde/libdrm-git/COPYING @@ -0,0 +1,48 @@ + Copyright 2005 Adam Jackson. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation on the rights to use, copy, modify, merge, + publish, distribute, sub license, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------ + + Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. + All Rights Reserved. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS + SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD index faced3da9..63af0c80c 100644 --- a/~coadde/libdrm-git/PKGBUILD +++ b/~coadde/libdrm-git/PKGBUILD @@ -1,19 +1,26 @@ +# $Id$ +# Maintainer: Jan de Groot +# Contributor: Alexander Baldeck # Arch libdrm Maintainers: # Jan de Groot # Andreas Radke # Maintainer (Parabola): Márcio Silva pkgname=libdrm-git -pkgver=20120611 -pkgrel=2 +pkgver=20120612 +pkgrel=1 pkgdesc="Userspace interface to kernel DRM services" arch=('i686' 'x86_64' 'mips64el') -license=('MIT') -depends=('libpciaccess') -provides=('libdrm=2.4.35') -makedepends=('git' 'cairo' 'udev') +license=('custom') +depends=('glibc' 'libpciaccess') +makedepends=('cairo' 'valgrind' 'git') options=('!libtool') url="http://dri.freedesktop.org/" +source=(no-pthread-stubs.patch + COPYING) +sha1sums=('2a5410baa3e6e078f9378ce486a88f41d22fd838' + 'ba3dcd636997ee0d30df14b03dae05c24ae5d094') +provides=('libdrm=2.4.35') conflicts=('libdrm') _gitroot='git://git.freedesktop.org/git/mesa/drm' @@ -21,25 +28,26 @@ _gitname='drm' build() { - cd "$srcdir" + cd "${srcdir}" msg "Connecting to GIT server...." - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin + if [[ -d "${_gitname}" ]]; then + cd "${_gitname}" && git pull origin msg "The local files are updated." else - git clone "$_gitroot" "$_gitname" + git clone "${_gitroot}" "${_gitname}" fi msg "GIT checkout done or server timeout" msg "Starting build..." - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - sed -i 's/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)//' configure.ac + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + patch -Np1 -i "${srcdir}/no-pthread-stubs.patch" + #libtoolize --force + autoreconf --force --install ./autogen.sh ./configure --prefix=/usr \ --enable-udev \ @@ -47,15 +55,17 @@ build() { --enable-radeon \ --enable-vmwgfx-experimental-api \ --enable-nouveau - make V=1 + make } check() { - cd "$srcdir/$_gitname-build" + cd "${srcdir}/${_gitname}-build" make -k check } package() { - cd "$srcdir/$_gitname-build" - make DESTDIR="$pkgdir" install + cd "${srcdir}/${_gitname}-build" + make DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/" } diff --git a/~coadde/libdrm-git/no-pthread-stubs.patch b/~coadde/libdrm-git/no-pthread-stubs.patch new file mode 100644 index 000000000..6745f4bc4 --- /dev/null +++ b/~coadde/libdrm-git/no-pthread-stubs.patch @@ -0,0 +1,70 @@ +diff -Nur libdrm-2.4.34.orig/configure.ac libdrm-2.4.34/configure.ac +--- libdrm-2.4.34.orig/configure.ac 2012-05-12 14:54:06.375335490 +0000 ++++ libdrm-2.4.34/configure.ac 2012-05-12 14:54:32.075142065 +0000 +@@ -47,10 +47,6 @@ + LT_INIT([disable-static]) + + +-PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs) +-AC_SUBST(PTHREADSTUBS_CFLAGS) +-AC_SUBST(PTHREADSTUBS_LIBS) +- + pkgconfigdir=${libdir}/pkgconfig + AC_SUBST(pkgconfigdir) + AC_ARG_ENABLE([udev], +diff -Nur libdrm-2.4.34.orig/intel/Makefile.am libdrm-2.4.34/intel/Makefile.am +--- libdrm-2.4.34.orig/intel/Makefile.am 2012-05-12 14:54:06.372001955 +0000 ++++ libdrm-2.4.34/intel/Makefile.am 2012-05-12 14:55:24.164745055 +0000 +@@ -26,7 +26,6 @@ + $(WARN_CFLAGS) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/intel \ +- $(PTHREADSTUBS_CFLAGS) \ + $(PCIACCESS_CFLAGS) \ + $(VALGRIND_CFLAGS) \ + -I$(top_srcdir)/include/drm +@@ -35,7 +34,6 @@ + libdrm_intel_ladir = $(libdir) + libdrm_intel_la_LDFLAGS = -version-number 1:0:0 -no-undefined + libdrm_intel_la_LIBADD = ../libdrm.la \ +- @PTHREADSTUBS_LIBS@ \ + @PCIACCESS_LIBS@ \ + @CLOCK_LIB@ + +diff -Nur libdrm-2.4.34.orig/nouveau/Makefile.am libdrm-2.4.34/nouveau/Makefile.am +--- libdrm-2.4.34.orig/nouveau/Makefile.am 2012-05-12 14:54:06.331998148 +0000 ++++ libdrm-2.4.34/nouveau/Makefile.am 2012-05-12 14:56:00.941132085 +0000 +@@ -2,14 +2,13 @@ + $(WARN_CFLAGS) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/nouveau \ +- $(PTHREADSTUBS_CFLAGS) \ + -I$(top_srcdir)/include/drm \ + -DDEBUG + + libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la + libdrm_nouveau_ladir = $(libdir) + libdrm_nouveau_la_LDFLAGS = -version-number 2:0:0 -no-undefined +-libdrm_nouveau_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@ ++libdrm_nouveau_la_LIBADD = ../libdrm.la + + libdrm_nouveau_la_SOURCES = nouveau.c \ + pushbuf.c \ +diff -Nur libdrm-2.4.34.orig/radeon/Makefile.am libdrm-2.4.34/radeon/Makefile.am +--- libdrm-2.4.34.orig/radeon/Makefile.am 2012-05-12 14:54:06.365334765 +0000 ++++ libdrm-2.4.34/radeon/Makefile.am 2012-05-12 14:55:48.084557437 +0000 +@@ -26,13 +26,12 @@ + $(WARN_CFLAGS) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/radeon \ +- $(PTHREADSTUBS_CFLAGS) \ + -I$(top_srcdir)/include/drm + + libdrm_radeon_la_LTLIBRARIES = libdrm_radeon.la + libdrm_radeon_ladir = $(libdir) + libdrm_radeon_la_LDFLAGS = -version-number 1:0:0 -no-undefined +-libdrm_radeon_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@ ++libdrm_radeon_la_LIBADD = ../libdrm.la + + libdrm_radeon_la_SOURCES = \ + radeon_bo_gem.c \ -- cgit v1.2.3 From c5be185a3ac967c736957162669e5dc11b234857 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Mon, 11 Jun 2012 23:40:47 -0300 Subject: update glproto-git PKGBUILD --- ~coadde/glproto-git/PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/~coadde/glproto-git/PKGBUILD b/~coadde/glproto-git/PKGBUILD index b649dce94..bde7a57a8 100644 --- a/~coadde/glproto-git/PKGBUILD +++ b/~coadde/glproto-git/PKGBUILD @@ -1,18 +1,20 @@ +# $Id$ +# Maintainer: Jan de Groot +# Contributor: Alexander Baldeck # Maintainer: kfgz # Contributor: Cilyan Olowen # Maintainer (Parabola): Márcio Silva pkgname=glproto-git -pkgver=20120611 +pkgver=20120612 pkgrel=1 pkgdesc="X11 OpenGL extension wire protocol" -arch=('i686' 'x86_64' 'mips64el') +arch=(any) url="http://xorg.freedesktop.org/" license=('custom') provides=('glproto' 'glproto=1.4.15') makedepends=('xorg-util-macros>=1.2' 'git') conflicts=('glproto') -#groups=('xorg') _gitroot="git://git.freedesktop.org/git/xorg/proto/glproto" _gitname="glproto" -- cgit v1.2.3 From 2c09d4147cf0a7b5b8ae2025bc68fa38c29fa5f0 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Tue, 12 Jun 2012 00:23:28 -0300 Subject: adding mesa-git package group --- ~coadde/mesa-git/LICENSE | 82 +++++++++++++++ ~coadde/mesa-git/PKGBUILD | 263 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+) create mode 100644 ~coadde/mesa-git/LICENSE create mode 100644 ~coadde/mesa-git/PKGBUILD diff --git a/~coadde/mesa-git/LICENSE b/~coadde/mesa-git/LICENSE new file mode 100644 index 000000000..ae33d2709 --- /dev/null +++ b/~coadde/mesa-git/LICENSE @@ -0,0 +1,82 @@ +Disclaimer + +Mesa is a 3-D graphics library with an API which is very similar to +that of OpenGL* +To the extent that Mesa utilizes the OpenGL command syntax or state +machine, it is being used with authorization from Silicon Graphics, +Inc.(SGI). However, the author does not possess an OpenGL license +from SGI, and makes no claim that Mesa is in any way a compatible +replacement for OpenGL or associated with SGI. Those who want a +licensed implementation of OpenGL should contact a licensed +vendor. + +Please do not refer to the library as MesaGL (for legal +reasons). It's just Mesa or The Mesa 3-D graphics +library + +* OpenGL is a trademark of Silicon Graphics Incorporated. + +License / Copyright Information + +The Mesa distribution consists of several components. Different copyrights +and licenses apply to different components. For example, GLUT is copyrighted +by Mark Kilgard, some demo programs are copyrighted by SGI, some of the Mesa +device drivers are copyrighted by their authors. See below for a list of +Mesa's main components and the license for each. + +The core Mesa library is licensed according to the terms of the MIT license. +This allows integration with the XFree86, Xorg and DRI projects. + +The default Mesa license is as follows: + +Copyright (C) 1999-2007 Brian Paul All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Attention, Contributors + +When contributing to the Mesa project you must agree to the licensing terms +of the component to which you're contributing. +The following section lists the primary components of the Mesa distribution +and their respective licenses. + + +Mesa Component Licenses + +Component Location Primary Author License +---------------------------------------------------------------------------- +Main Mesa code src/mesa/ Brian Paul Mesa (MIT) + +Device drivers src/mesa/drivers/* See drivers See drivers + +Ext headers include/GL/glext.h SGI SGI Free B + include/GL/glxext.h + +GLUT src/glut/ Mark Kilgard Mark's copyright + +Mesa GLU library src/glu/mesa/ Brian Paul GNU-LGPL + +SGI GLU library src/glu/sgi/ SGI SGI Free B + +demo programs progs/demos/ various see source files + +X demos progs/xdemos/ Brian Paul see source files + +SGI demos progs/samples/ SGI SGI copyright + +RedBook demos progs/redbook/ SGI SGI copyright diff --git a/~coadde/mesa-git/PKGBUILD b/~coadde/mesa-git/PKGBUILD new file mode 100644 index 000000000..dfd4a9a75 --- /dev/null +++ b/~coadde/mesa-git/PKGBUILD @@ -0,0 +1,263 @@ +# $Id$ +# Maintainer: Egon Ashrafinia +# Maintainer: Jan de Groot +# Maintainer: Andreas Radke +# Maintainer (Parabola): Márcio Silva + +pkgbase=mesa-git +pkgname=('mesa-git') +true && pkgname=('mesa-git' 'libgl-git' 'osmesa-git' 'libglapi-git' 'libgbm-git' 'libgles-git' 'libegl-git' 'khrplatform-devel-git' 'ati-dri-git' 'intel-dri-git' 'nouveau-dri-git' 'svga-dri-git') +pkgver=20120612 +pkgrel=1 +_mesaver=8.1 +arch=('i686' 'x86_64' 'mips64el') +makedepends=('glproto-git' 'libdrm-git' 'libxxf86vm>=1.1.1' 'libxdamage>=1.1.3' 'expat>=2.0.1' 'libx11>=1.4.99.1' 'libxt>=1.1.1' + 'gcc-libs>=4.6.1' 'dri2proto>=2.6' 'python2' 'libxml2' 'imake' 'llvm' 'udev>=183' 'git') +url="http://mesa3d.sourceforge.net" +license=('custom') +source=(LICENSE) +md5sums=('5c65a0fe315dd347e09b1f2826a1df5a') + +_gitroot='git://anongit.freedesktop.org/git/mesa/mesa' +_gitname='mesa' + +build() { + msg 'Connecting to git.freedesktop.org GIT server....' + if [ -d ${_gitname} ] ; then + cd ${_gitname} && git pull origin + else + git clone ${_gitroot} --depth 1 + fi + msg 'GIT checkout done or server timeout' + msg 'Starting make...' + + cd "${srcdir}" + + # Cleanup and prepare the build dir + [ -d build ] && rm -rf build + cp -r ${_gitname} build + cd build + + # addind empty header for version.c + touch src/mesa/main/git_sha1.h + + autoreconf -vfi + ./autogen.sh --prefix=/usr \ + --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-gbm \ + --enable-glx-tls \ + --enable-dri \ + --enable-glx \ + --enable-osmesa \ + --enable-gles1 \ + --enable-gles2 \ + --enable-egl \ + --enable-texture-float \ + --enable-xa \ + --enable-shared-dricore + make +} + +package_libgl-git() { + depends=('libdrm-git' 'libxxf86vm>=1.1.1' 'libxdamage>=1.1.3' 'expat>=2.0.1' 'libglapi-git' 'gcc-libs') + conflicts=('libgl') + provides=("libgl=${_mesaver}") + pkgdesc="Mesa 3-D graphics library and DRI software rasterizer" + + cd "${srcdir}"/build + install -m755 -d "${pkgdir}/usr/lib" + install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions" + + bin/minstall lib/libGL.so* "${pkgdir}/usr/lib/" + bin/minstall lib/libdricore.so* "${pkgdir}/usr/lib/" + #bin/minstall lib/libglsl.so* "${pkgdir}/usr/lib/" + + cd src/mesa/drivers/dri + make -C "${srcdir}"/build/src/gallium/targets/dri-swrast DESTDIR="${pkgdir}" install + + ln -s libglx.xorg "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so" + + install -m755 -d "${pkgdir}/usr/share/licenses/libgl-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libgl-git/" +} + +package_osmesa-git() { + depends=('mesa-git') + conflicts=('osmesa') + provides=("osmesa=${_mesaver}") + optdepends=('opengl-man-pages: for the OpenGL API man pages') + pkgdesc="Mesa 3D off-screen rendering library" + + make -C "${srcdir}"/build/src/mesa DESTDIR="${pkgdir}" install-osmesa +} + +package_libglapi-git() { + depends=('glibc') + conflicts=('libglapi') + provides=("libglapi=${_mesaver}") + pkgdesc="free implementation of the GL API -- shared library. The Mesa GL API module is responsible for dispatching all the gl* functions" + + cd "${srcdir}"/build + install -m755 -d "${pkgdir}/usr/lib" + bin/minstall lib/libglapi.so* "${pkgdir}/usr/lib/" + + install -m755 -d "${pkgdir}/usr/share/licenses/libglapi-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libglapi-git/" +} + +package_libgbm-git() { + depends=('glibc') + conflicts=('libgbm') + provides=("libgbm=${_mesaver}") + pkgdesc="Mesa gbm library" + + cd "${srcdir}"/build + 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-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libgbm-git/" +} + +package_libgles-git() { + depends=('libglapi-git' 'khrplatform-devel-git') + conflicts=('libgles') + provides=("libgles=${_mesaver}") + pkgdesc="Mesa GLES libraries and headers" + + cd "${srcdir}"/build + install -m755 -d "${pkgdir}/usr/lib" + install -m755 -d "${pkgdir}/usr/lib/pkgconfig" + install -m755 -d "${pkgdir}/usr/include" + install -m755 -d "${pkgdir}/usr/include/GLES" + install -m755 -d "${pkgdir}/usr/include/GLES2" + bin/minstall lib/libGLESv* "${pkgdir}/usr/lib/" + bin/minstall src/mapi/es1api/glesv1_cm.pc "${pkgdir}/usr/lib/pkgconfig/" + bin/minstall src/mapi/es2api/glesv2.pc "${pkgdir}/usr/lib/pkgconfig/" + bin/minstall include/GLES/* "${pkgdir}/usr/include/GLES/" + bin/minstall include/GLES2/* "${pkgdir}/usr/include/GLES2/" + + install -m755 -d "${pkgdir}/usr/share/licenses/libgles-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libgles-git/" +} + +package_libegl-git() { + depends=('libglapi-git' 'libdrm-git' 'libxext' 'libxfixes' 'udev' 'khrplatform-devel-git') + conflicts=('libegl') + provides=("libegl=${_mesaver}") + pkgdesc="Mesa libEGL libraries and headers" + + cd "${srcdir}"/build + make -C src/gallium/targets/egl-static DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}/usr/lib" + install -m755 -d "${pkgdir}/usr/lib/pkgconfig" + install -m755 -d "${pkgdir}/usr/include" + install -m755 -d "${pkgdir}/usr/include/" + install -m755 -d "${pkgdir}/usr/include/EGL" + install -m755 -d "${pkgdir}/usr/share" + install -m755 -d "${pkgdir}/usr/share/doc" + install -m755 -d "${pkgdir}/usr/share/doc/libegl" + bin/minstall lib/libEGL.so* "${pkgdir}/usr/lib/" + install -m755 -d "${pkgdir}/usr/lib/egl" + bin/minstall lib/egl/* "${pkgdir}/usr/lib/egl/" + bin/minstall src/egl/main/egl.pc "${pkgdir}/usr/lib/pkgconfig/" + bin/minstall include/EGL/* "${pkgdir}/usr/include/EGL/" + bin/minstall docs/egl.html "${pkgdir}/usr/share/doc/libegl/" + + install -m755 -d "${pkgdir}/usr/share/licenses/libegl-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libegl-git/" +} + +package_khrplatform-devel-git() { + conflicts=('khrplatform-devel') + provides=("khrplatform-devel=${_mesaver}") + pkgdesc="Khronos platform development package" + + cd ${srcdir}/build + install -m755 -d "${pkgdir}/usr/include/KHR" + bin/minstall include/KHR/khrplatform.h "${pkgdir}/usr/include/KHR/" + + install -m755 -d "${pkgdir}/usr/share/licenses/khrplatform-devel" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/khrplatform-devel/" +} + +package_mesa-git() { + depends=('libgl-git' 'libx11>=1.4.3' 'libxt>=1.1.1' 'gcc-libs>=4.6' 'dri2proto>=2.6' 'glproto>=1.4.14') #dri2proto + glproto needed for gl.pc + optdepends=('opengl-man-pages: for the OpenGL API man pages') + conflicts=('mesa') + provides=("mesa=${_mesaver}") + pkgdesc="Mesa 3-D graphics libraries and include files" + + cd "${srcdir}"/build + make DESTDIR="${pkgdir}" install + + 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,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 -rf ${pkgdir}/usr/include/{GLES,GLES2,EGL,KHR} + + install -m755 -d "${pkgdir}/usr/share/licenses/mesa-git" + install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-git/" +} + +package_ati-dri-git() { + depends=('libgl-git') + conflicts=('ati-dri' 'xf86-video-ati<6.9.0-6') + provides=("ati-dri=${_mesaver}") + pkgdesc="Mesa DRI + Gallium3D r300 drivers for AMD/ATI Radeon" + + # classic mesa driver for R300 r300_dri.so + make -C ${srcdir}/build/src/mesa/drivers/dri/radeon DESTDIR="${pkgdir}" install + make -C ${srcdir}/build/src/mesa/drivers/dri/r200 DESTDIR="${pkgdir}" install + # gallium3D driver for R300 r300_dri.so + make -C "${srcdir}"/build/src/gallium/targets/dri-r300 DESTDIR="${pkgdir}" install + make -C "${srcdir}"/build/src/gallium/targets/dri-r600 DESTDIR="${pkgdir}" install +} + +package_intel-dri-git() { + depends=('libgl-git') + conflicts=('intel-dri') + provides=("intel-dri=${_mesaver}") + pkgdesc="Mesa DRI drivers for Intel" + + make -C ${srcdir}/build/src/mesa/drivers/dri/i915 DESTDIR="${pkgdir}" install + make -C ${srcdir}/build/src/mesa/drivers/dri/i965 DESTDIR="${pkgdir}" install +} + +package_nouveau-dri-git() { + depends=('libgl-git') + conflicts=('nouveau-dri') + provides=("nouveau-dri=${_mesaver}") + pkgdesc="Mesa classic DRI + Gallium3D drivers for Nouveau" + + # classic mesa driver for nv10 , nv20 nouveau_vieux_dri.so + make -C ${srcdir}/build/src/mesa/drivers/dri/nouveau DESTDIR="${pkgdir}" install + # gallium3D driver for nv30 - nv40 - nv50 nouveau_dri.so + make -C ${srcdir}/build/src/gallium/targets/dri-nouveau DESTDIR="${pkgdir}" install +} + + +package_svga-dri-git() { + depends=("mesa-git") + conflicts=('svga-dri') + provides=("svga-dri=${_mesaver}") + pkgdesc="Gallium3D VMware guest GL driver" + + make -C ${srcdir}/build/src/gallium/targets/dri-vmwgfx DESTDIR="${pkgdir}" install +} -- cgit v1.2.3