summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornutcase842017-09-22 16:53:04 -0400
committernutcase842017-09-22 16:53:04 -0400
commit99b2c9ba1974d64df433ac497fb4ccb3d0f1b88a (patch)
tree8cc0c5f01111c687dbfe8e98038736382b9b12bb
downloadaur-99b2c9ba1974d64df433ac497fb4ccb3d0f1b88a.tar.gz
Initial commit
-rw-r--r--.SRCINFO62
-rw-r--r--LICENSE82
-rw-r--r--PKGBUILD122
3 files changed, 266 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..85e0406d133
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,62 @@
+pkgbase = mesa_mild_compatibility-git
+ pkgdesc = Mesa with modifications for GALLIUM3D drivers and i965
+ pkgver = 17.3.0_mild.96143.bc03bdfee8
+ pkgrel = 1
+ url = https://github.com/mikakev1/mesa_mild_compatibility/tree/master
+ arch = x86_64
+ license = custom
+ makedepends = git
+ makedepends = python2-mako
+ makedepends = llvm-svn
+ makedepends = libclc
+ makedepends = clang-svn
+ makedepends = glproto
+ makedepends = dri2proto
+ makedepends = dri3proto
+ makedepends = presentproto
+ makedepends = libxml2
+ makedepends = libx11
+ makedepends = libvdpau
+ makedepends = libva
+ makedepends = elfutils
+ makedepends = libomxil-bellagio
+ makedepends = ocl-icd
+ makedepends = vulkan-icd-loader
+ makedepends = libgcrypt
+ makedepends = wayland-protocols
+ depends = libdrm
+ depends = wayland
+ depends = libxxf86vm
+ depends = libxdamage
+ depends = libxshmfence
+ depends = libelf
+ depends = libomxil-bellagio
+ depends = libtxc_dxtn
+ depends = llvm-libs-svn
+ depends = libunwind
+ depends = libglvnd
+ optdepends = opengl-man-pages: for the OpenGL API man pages
+ provides = mesa
+ provides = opencl-mesa
+ provides = vulkan-intel
+ provides = vulkan-radeon
+ provides = libva-mesa-driver
+ provides = mesa-vdpau
+ provides = mesa-libgl
+ provides = vulkan-driver
+ provides = opencl-driver
+ provides = opengl-driver
+ conflicts = mesa
+ conflicts = opencl-mesa
+ conflicts = vulkan-intel
+ conflicts = vulkan-radeon
+ conflicts = libva-mesa-driver
+ conflicts = mesa-vdpau
+ conflicts = mesa-libgl
+ source = mesa::git://github.com/mikakev1/mesa_mild_compatibility.git
+ source = LICENSE
+ sha512sums = SKIP
+ sha512sums = 25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2
+
+pkgname = mesa_mild_compatibility-git
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..ae33d2709c4
--- /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 00000000000..9c0f1cb3051
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,122 @@
+# Maintainer: nutcase84 <nutcase84@protonmail.com>
+
+pkgbase=mesa_mild_compatibility-git
+pkgname=('mesa_mild_compatibility-git')
+pkgdesc="Mesa with modifications for GALLIUM3D drivers and i965"
+pkgver=17.3.0_mild.96143.bc03bdfee8
+pkgrel=1
+arch=('x86_64')
+makedepends=('git' 'python2-mako' 'llvm-svn' 'libclc' 'clang-svn' 'glproto'
+ 'dri2proto' 'dri3proto' 'presentproto' 'libxml2' 'libx11'
+ 'libvdpau' 'libva' 'elfutils' 'libomxil-bellagio'
+ 'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'wayland-protocols')
+depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf'
+ 'libomxil-bellagio' 'libtxc_dxtn' 'llvm-libs-svn' 'libunwind' 'libglvnd')
+optdepends=('opengl-man-pages: for the OpenGL API man pages')
+provides=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'mesa-libgl' 'vulkan-driver' 'opencl-driver' 'opengl-driver')
+conflicts=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'mesa-libgl')
+url="https://github.com/mikakev1/mesa_mild_compatibility/tree/master"
+license=('custom')
+source=('mesa::git://github.com/mikakev1/mesa_mild_compatibility.git'
+ 'LICENSE'
+)
+sha512sums=('SKIP'
+ '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2')
+
+prepare() {
+ cd ${srcdir}/mesa
+}
+
+pkgver() {
+ cd mesa
+ read -r _ver <VERSION
+ echo ${_ver/-/_}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build () {
+ cd mesa
+
+ ./autogen.sh --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-dri-driverdir=/usr/lib/xorg/modules/dri \
+ --with-gallium-drivers=i915,r300,r600,radeonsi,nouveau,svga,swrast,virgl \
+ --with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
+ --with-platforms=x11,drm,wayland \
+ --with-vulkan-drivers=intel,radeon \
+ --enable-texture-float \
+ --enable-gallium-osmesa \
+ --enable-xa \
+ --enable-nine \
+ --disable-xvmc \
+ --enable-vdpau \
+ --enable-omx-bellagio \
+ --enable-opencl \
+ --enable-opencl-icd \
+ --enable-glx-tls \
+ --enable-libglvnd
+
+
+# Used configure settings
+#
+# --prefix=PREFIX install architecture-independent files in PREFIX
+# --sysconfdir=DIR read-only single-machine data
+# [PREFIX/etc]
+# --with-dri-driverdir=DIR directory for the DRI drivers
+# [${libdir}/dri]
+# --with-gallium-drivers[=DIRS...] comma delimited Gallium drivers list, e.g. "i915,ilo,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl"
+# [default=r300,r600,svga,swrast]
+# --with-dri-drivers[=DIRS...] comma delimited classic DRI drivers list, e.g. "swrast,i965,radeon"
+# [default=auto]
+# --with-platforms[=DIRS...] comma delimited native platforms libEGL/Vulkan/other
+# supports, e.g. "x11,drm,wayland,surfaceless..."
+# [default=auto]
+# --with-vulkan-drivers[=DIRS...] comma delimited Vulkan drivers list, e.g. "intel"
+# [default=no]
+# --enable-texture-float enable floating-point textures and renderbuffers
+# [default=disabled]
+# --enable-gallium-osmesa enable Gallium implementation of the OSMesa library
+# [default=disabled]
+# --enable-xa enable build of the XA X Acceleration API
+# [default=disabled]
+# --enable-nine enable build of the nine Direct3D9 API
+# [default=no]
+# --disable-xvmc enable xvmc library
+# [default=auto]
+# --enable-vdpau enable vdpau library
+# [default=auto]
+# --enable-omx-bellagio enable OpenMAX Bellagio library
+# [default=disabled]
+# --enable-opencl enable OpenCL library
+# [default=disabled]
+# --enable-opencl-icd Build an OpenCL ICD library to be loaded by an ICD implementation
+# [default=disabled]
+# --enable-glx-tls enable TLS support in GLX
+# [default=disabled]
+# --enable-libglvnd Build GLX and EGL for libglvnd
+# [default=disabled]
+
+ make
+
+}
+
+
+package_mesa_mild_compatibility-git() {
+
+ cd mesa
+ make DESTDIR="$pkgdir" install
+ # remove vulkan headers as they are provided by vulkan-headers package
+ rm -rf "$pkgdir"/usr/include/vulkan/vk_platform.h "$pkgdir"/usr/include/vulkan/vulkan.h
+
+ # remove files present in libglvnd
+ rm $pkgdir/usr/lib/libGLESv1_CM.so
+ rm $pkgdir/usr/lib/libGLESv1_CM.so.1
+ rm $pkgdir/usr/lib/libGLESv2.so
+ rm $pkgdir/usr/lib/libGLESv2.so.2
+ rm $pkgdir/usr/lib/libGLESv2.so.2.0.0
+
+ # indirect rendering
+ ln -s /usr/lib/libGLX_mesa.so.0 ${pkgdir}/usr/lib/libGLX_indirect.so.0
+
+ install -m755 -d "$pkgdir"/usr/share/licenses/$pkgbase
+ install -m644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgbase/
+}