From e15511d858efdd06d1e9cad025c697010fae03ef Mon Sep 17 00:00:00 2001 From: Armin K Date: Tue, 30 Dec 2014 19:42:36 +0100 Subject: [PATCH] Initial commit for mesa-git. --- .SRCINFO | 149 +++++++++++++++++++++++++++++++++++++++++ LICENSE | 82 +++++++++++++++++++++++ PKGBUILD | 200 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 431 insertions(+) create mode 100644 .SRCINFO create mode 100644 LICENSE create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..2de5cf8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,149 @@ +# Generated by makepkg 4.2.0 +# Tue Dec 30 18:41:16 UTC 2014 +pkgbase = mesa-git + pkgver = 10.5.0_devel.67119 + pkgrel = 1 + url = http://mesa3d.sourceforge.net + arch = i686 + arch = x86_64 + license = custom + makedepends = python2 + makedepends = libxml2 + makedepends = libx11 + makedepends = glproto + makedepends = libdrm + makedepends = dri2proto + makedepends = dri3proto + makedepends = presentproto + makedepends = libxshmfence + makedepends = libxxf86vm + makedepends = libxdamage + makedepends = libvdpau + makedepends = libva + makedepends = wayland + makedepends = elfutils + makedepends = llvm + makedepends = systemd + makedepends = libomxil-bellagio + makedepends = libclc + makedepends = clang + makedepends = git + source = mesa::git://anongit.freedesktop.org/mesa/mesa#branch=master + source = LICENSE + md5sums = SKIP + md5sums = 5c65a0fe315dd347e09b1f2826a1df5a + +pkgname = opencl-mesa-git + pkgdesc = OpenCL support for AMD/ATI Radeon Mesa drivers + depends = expat + depends = libdrm + depends = elfutils + depends = libxfixes + depends = libxext + depends = libcl + depends = libclc + depends = clang + optdepends = opencl-headers: headers necessary for OpenCL development + provides = opencl-mesa + conflicts = opencl-mesa + replaces = opencl-mesa + +pkgname = libva-mesa-driver-git + pkgdesc = VA-API implementation for gallium + depends = libdrm + depends = libx11 + depends = llvm-libs + depends = expat + depends = elfutils + provides = libva-mesa-driver + conflicts = libva-mesa-driver + replaces = libva-mesa-driver + +pkgname = mesa-vdpau-git + pkgdesc = Mesa VDPAU drivers + depends = libdrm + depends = libx11 + depends = llvm-libs + depends = expat + depends = elfutils + provides = mesa-vdpau + conflicts = mesa-vdpau + replaces = mesa-vdpau + +pkgname = mesa-git + pkgdesc = an open-source implementation of the OpenGL specification + depends = libdrm + depends = wayland + depends = libxxf86vm + depends = libxdamage + depends = libxshmfence + depends = systemd + depends = elfutils + depends = libomxil-bellagio + depends = expat + depends = libtxc_dxtn + depends = llvm-libs + optdepends = opengl-man-pages: for the OpenGL API man pages + optdepends = mesa-vdpau-git: for accelerated video playback + optdepends = libva-mesa-driver-git: for accelerated video playback + provides = mesa=10.5.0-devel + provides = libglapi + provides = osmesa + provides = libgbm + provides = libgles + provides = libegl + provides = khrplatform-devel + provides = ati-dri + provides = intel-dri + provides = nouveau-dri + provides = svga-dri + provides = mesa-dri + provides = ati-dri-git + provides = intel-dri-git + provides = nouveau-dri-git + provides = svga-dri-git + provides = mesa-dri-git + conflicts = mesa + conflicts = libglapi + conflicts = osmesa + conflicts = libgbm + conflicts = libgles + conflicts = libegl + conflicts = khrplatform-devel + conflicts = ati-dri + conflicts = intel-dri + conflicts = nouveau-dri + conflicts = svga-dri + conflicts = mesa-dri + conflicts = ati-dri-git + conflicts = intel-dri-git + conflicts = nouveau-dri-git + conflicts = svga-dri-git + conflicts = mesa-dri-git + replaces = mesa + replaces = libglapi + replaces = osmesa + replaces = libgbm + replaces = libgles + replaces = libegl + replaces = khrplatform-devel + replaces = ati-dri + replaces = intel-dri + replaces = nouveau-dri + replaces = svga-dri + replaces = mesa-dri + replaces = ati-dri-git + replaces = intel-dri-git + replaces = nouveau-dri-git + replaces = svga-dri-git + replaces = mesa-dri-git + +pkgname = mesa-libgl-git + pkgdesc = Mesa 3-D graphics library + depends = mesa=10.5.0-devel + provides = mesa-libgl=10.5.0-devel + provides = libgl=10.5.0-devel + conflicts = mesa-libgl + replaces = mesa-libgl + replaces = libgl + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ae33d27 --- /dev/null +++ b/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/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..75f4408 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,200 @@ +# Maintainer: Armin K. +# Contributor: Kristian Klausen +# Contributor: Egon Ashrafinia +# Contributor: Tavian Barnes +# Contributor: Jan de Groot +# Contributor: Andreas Radke +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Antti "Tera" Oja +# Contributor: Diego Jose + +pkgbase=mesa-git +pkgname=('opencl-mesa-git' 'libva-mesa-driver-git' 'mesa-vdpau-git' 'mesa-git' 'mesa-libgl-git') +pkgver=10.5.0_devel.67119 +pkgrel=1 +arch=('i686' 'x86_64') +makedepends=('python2' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto' + 'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'libva' 'wayland' 'elfutils' 'llvm' + 'systemd' 'libomxil-bellagio' 'libclc' 'clang' 'git') +url="http://mesa3d.sourceforge.net" +license=('custom') +source=('mesa::git://anongit.freedesktop.org/mesa/mesa#branch=master' + 'LICENSE') +md5sums=('SKIP' + '5c65a0fe315dd347e09b1f2826a1df5a') + +pkgver() { + cd "${srcdir}/mesa" + echo $(cat VERSION | tr "-" "_").$(git rev-list --count HEAD) +} + +_mesaver() { + path="${srcdir}/mesa/VERSION" + [ -f $path ] && cat "$path" +} + +build () { + cd "${srcdir}/mesa" + + ./autogen.sh --prefix=/usr \ + --sysconfdir=/etc \ + --with-dri-driverdir=/usr/lib/xorg/modules/dri \ + --with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \ + --with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \ + --with-egl-platforms=x11,drm,wayland \ + --disable-xvmc \ + --enable-llvm-shared-libs \ + --enable-egl \ + --enable-gbm \ + --enable-gallium-llvm \ + --enable-shared-glapi \ + --enable-glx \ + --enable-glx-tls \ + --enable-dri \ + --enable-osmesa \ + --enable-gles1 \ + --enable-gles2 \ + --enable-texture-float \ + --enable-xa \ + --enable-vdpau \ + --enable-omx \ + --enable-nine \ + --enable-opencl \ + --enable-opencl-icd \ + --with-clang-libdir=/usr/lib + + make + + # fake installation + mkdir -p "${srcdir}/fakeinstall" + make DESTDIR="${srcdir}/fakeinstall" install +} + +package_opencl-mesa-git () { + pkgdesc="OpenCL support for AMD/ATI Radeon Mesa drivers" + depends=('expat' 'libdrm' 'elfutils' 'libxfixes' 'libxext' 'libcl' 'libclc' 'clang') + optdepends=('opencl-headers: headers necessary for OpenCL development') + provides=('opencl-mesa') + replaces=('opencl-mesa') + conflicts=('opencl-mesa') + + install -v -m755 -d "${pkgdir}/etc" + mv -v "${srcdir}/fakeinstall/etc/OpenCL" "${pkgdir}/etc/" + + install -v -m755 -d "${pkgdir}/usr/lib/gallium-pipe" + mv -v "${srcdir}"/fakeinstall/usr/lib/lib*OpenCL* "${pkgdir}/usr/lib/" + mv -v "${srcdir}"/fakeinstall/usr/lib/gallium-pipe/pipe_{r600,radeonsi}.so "${pkgdir}/usr/lib/gallium-pipe/" + + install -v -m755 -d "${pkgdir}/usr/share/licenses/opencl-mesa" + install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/opencl-mesa/" + + ln -sfv opencl-mesa "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_libva-mesa-driver-git() { + pkgdesc="VA-API implementation for gallium" + depends=('libdrm' 'libx11' 'llvm-libs' 'expat' 'elfutils') + provides=('libva-mesa-driver') + replaces=('libva-mesa-driver') + conflicts=('libva-mesa-driver') + + install -v -m755 -d "${pkgdir}/usr/lib" + mv -v "${srcdir}/fakeinstall/usr/lib/dri" "${pkgdir}/usr/lib/" + + install -v -m755 -d "${pkgdir}/usr/share/licenses/libva-mesa-driver" + install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libva-mesa-driver/" + + ln -sfv libva-mesa-driver "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_mesa-vdpau-git() { + pkgdesc="Mesa VDPAU drivers" + depends=('libdrm' 'libx11' 'llvm-libs' 'expat' 'elfutils') + provides=('mesa-vdpau') + replaces=('mesa-vdpau') + conflicts=('mesa-vdpau') + + install -v -m755 -d "${pkgdir}/usr/lib" + mv -v "${srcdir}/fakeinstall/usr/lib/vdpau" "${pkgdir}/usr/lib/" + + install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa-vdpau" + install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-vdpau/" + + ln -sfv mesa-vdpau "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_mesa-git () { + pkgdesc="an open-source implementation of the OpenGL specification" + depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'systemd' 'elfutils' + 'libomxil-bellagio' 'expat' 'libtxc_dxtn' 'llvm-libs') + optdepends=('opengl-man-pages: for the OpenGL API man pages' + 'mesa-vdpau-git: for accelerated video playback' + 'libva-mesa-driver-git: for accelerated video playback') + provides=("mesa=$(_mesaver)" 'libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' + 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri' + 'ati-dri-git' 'intel-dri-git' 'nouveau-dri-git' 'svga-dri-git' 'mesa-dri-git') + replaces=('mesa' 'libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' + 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri' + 'ati-dri-git' 'intel-dri-git' 'nouveau-dri-git' 'svga-dri-git' 'mesa-dri-git') + conflicts=('mesa' 'libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel' + 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri' 'mesa-dri' + 'ati-dri-git' 'intel-dri-git' 'nouveau-dri-git' 'svga-dri-git' 'mesa-dri-git') + + install -v -m755 -d "${pkgdir}/etc" + mv -v "${srcdir}/fakeinstall/etc/drirc" "${pkgdir}/etc/" + + install -v -m755 -d "${pkgdir}/usr/lib/xorg/modules/dri" + # ati-dri, nouveau-dri, intel-dri, svga-dri, swrast + mv -v "${srcdir}"/fakeinstall/usr/lib/xorg/modules/dri/* "${pkgdir}/usr/lib/xorg/modules/dri/" + + mv -v "${srcdir}"/fakeinstall/usr/lib/bellagio "${pkgdir}/usr/lib/" + mv -v "${srcdir}"/fakeinstall/usr/lib/d3d "${pkgdir}/usr/lib/" + mv -v "${srcdir}"/fakeinstall/usr/lib/*.so* "${pkgdir}/usr/lib/" + + mv -v "${srcdir}/fakeinstall/usr/include" "${pkgdir}/usr/" + mv -v "${srcdir}/fakeinstall/usr/lib/pkgconfig" "${pkgdir}/usr/lib/" + + install -v -m755 -d "${pkgdir}/usr/lib/mesa" + # move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ? + mv -v "${pkgdir}"/usr/lib/libGL.so* "${pkgdir}/usr/lib/mesa/" + mv -v "${pkgdir}"/usr/lib/libEGL.so* "${pkgdir}/usr/lib/mesa/" + mv -v "${pkgdir}"/usr/lib/libGLES*.so* "${pkgdir}/usr/lib/mesa/" + + install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa" + install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa/" + + ln -sfv mesa "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_mesa-libgl-git () { + pkgdesc="Mesa 3-D graphics library" + depends=("mesa=$(_mesaver)") + provides=("mesa-libgl=$(_mesaver)" "libgl=$(_mesaver)") + replaces=('mesa-libgl' 'libgl') + conflicts=('mesa-libgl') + + # See FS#26284 + install -v -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions" + ln -sfv libglx.xorg "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so" + + ln -sfv /usr/lib/mesa/libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so.1.2.0" + ln -sfv libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so.1" + ln -sfv libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so" + + ln -sfv /usr/lib/mesa/libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so.1.0.0" + ln -sfv libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so.1" + ln -sfv libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so" + + ln -sfv /usr/lib/mesa/libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so.1.1.0" + ln -sfv libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so.1" + ln -sfv libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so" + + ln -sfv /usr/lib/mesa/libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so.2.0.0" + ln -sfv libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so.2" + ln -sfv libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so" + + install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa-libgl" + install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-libgl/" + + ln -sfv mesa-libgl "${pkgdir}/usr/share/licenses/${pkgname}" +}