Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.05 KB | None | 0 0
  1. # Maintainer: nutcase84 <nutcase84@protonmail.com>
  2.  
  3. # Contributor: Lone_Wolf <lonewolf at xs4all dot nl>
  4. # Contributor: Armin K. <krejzi at email dot com>
  5. # Contributor: Kristian Klausen <klausenbusk@hotmail.com>
  6. # Contributor: Egon Ashrafinia <e.ashrafinia@gmail.com>
  7. # Contributor: Tavian Barnes <tavianator@gmail.com>
  8. # Contributor: Jan de Groot <jgc@archlinux.org>
  9. # Contributor: Andreas Radke <andyrtr@archlinux.org>
  10. # Contributor: Thomas Dziedzic < gostrc at gmail >
  11. # Contributor: Antti "Tera" Oja <antti.bofh@gmail.com>
  12. # Contributor: Diego Jose <diegoxter1006@gmail.com>
  13.  
  14. pkgbase=mesa_mild_compatibility-git
  15. pkgname=('mesa_mild_compatibility-git')
  16. pkgdesc="Mesa with modifications for GALLIUM3D drivers and i965"
  17. pkgver=17.3.0_mild.96143.bc03bdfee8
  18. pkgrel=1
  19. arch=('x86_64')
  20. makedepends=('git' 'python2-mako' 'llvm-svn' 'libclc' 'clang-svn' 'glproto'
  21. 'dri2proto' 'dri3proto' 'presentproto' 'libxml2' 'libx11'
  22. 'libvdpau' 'libva' 'elfutils' 'libomxil-bellagio'
  23. 'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'wayland-protocols')
  24. depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf'
  25. 'libomxil-bellagio' 'llvm-libs-svn' 'libunwind' 'libglvnd')
  26. optdepends=('opengl-man-pages: for the OpenGL API man pages')
  27. provides=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'mesa-libgl' 'vulkan-driver' 'opencl-driver' 'opengl-driver' 'libtxc_dxtn')
  28. conflicts=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'mesa-libgl' 'libtxc_dxtn')
  29. url="https://github.com/mikakev1/mesa_mild_compatibility/tree/master"
  30. license=('custom')
  31. source=('mesa::git://github.com/mikakev1/mesa_mild_compatibility.git'
  32. 'LICENSE'
  33. )
  34. sha512sums=('SKIP'
  35. '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2')
  36.  
  37. prepare() {
  38. cd ${srcdir}/mesa
  39. }
  40.  
  41. pkgver() {
  42. cd mesa
  43. read -r _ver <VERSION
  44. echo ${_ver/-/_}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  45. }
  46.  
  47. build () {
  48. cd mesa
  49.  
  50. ./autogen.sh --prefix=/usr \
  51. --sysconfdir=/etc \
  52. --with-dri-driverdir=/usr/lib/xorg/modules/dri \
  53. --with-gallium-drivers=i915,r300,r600,radeonsi,nouveau,svga,swrast,virgl \
  54. --with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
  55. --with-platforms=x11,drm,wayland \
  56. --with-vulkan-drivers=intel,radeon \
  57. --enable-texture-float \
  58. --enable-gallium-osmesa \
  59. --enable-xa \
  60. --enable-nine \
  61. --disable-xvmc \
  62. --enable-vdpau \
  63. --enable-omx-bellagio \
  64. --enable-opencl \
  65. --enable-opencl-icd \
  66. --enable-glx-tls \
  67. --enable-libglvnd
  68.  
  69.  
  70. # Used configure settings
  71. #
  72. # --prefix=PREFIX install architecture-independent files in PREFIX
  73. # --sysconfdir=DIR read-only single-machine data
  74. # [PREFIX/etc]
  75. # --with-dri-driverdir=DIR directory for the DRI drivers
  76. # [${libdir}/dri]
  77. # --with-gallium-drivers[=DIRS...] comma delimited Gallium drivers list, e.g. "i915,ilo,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl"
  78. # [default=r300,r600,svga,swrast]
  79. # --with-dri-drivers[=DIRS...] comma delimited classic DRI drivers list, e.g. "swrast,i965,radeon"
  80. # [default=auto]
  81. # --with-platforms[=DIRS...] comma delimited native platforms libEGL/Vulkan/other
  82. # supports, e.g. "x11,drm,wayland,surfaceless..."
  83. # [default=auto]
  84. # --with-vulkan-drivers[=DIRS...] comma delimited Vulkan drivers list, e.g. "intel"
  85. # [default=no]
  86. # --enable-texture-float enable floating-point textures and renderbuffers
  87. # [default=disabled]
  88. # --enable-gallium-osmesa enable Gallium implementation of the OSMesa library
  89. # [default=disabled]
  90. # --enable-xa enable build of the XA X Acceleration API
  91. # [default=disabled]
  92. # --enable-nine enable build of the nine Direct3D9 API
  93. # [default=no]
  94. # --disable-xvmc enable xvmc library
  95. # [default=auto]
  96. # --enable-vdpau enable vdpau library
  97. # [default=auto]
  98. # --enable-omx-bellagio enable OpenMAX Bellagio library
  99. # [default=disabled]
  100. # --enable-opencl enable OpenCL library
  101. # [default=disabled]
  102. # --enable-opencl-icd Build an OpenCL ICD library to be loaded by an ICD implementation
  103. # [default=disabled]
  104. # --enable-glx-tls enable TLS support in GLX
  105. # [default=disabled]
  106. # --enable-libglvnd Build GLX and EGL for libglvnd
  107. # [default=disabled]
  108.  
  109. make
  110.  
  111. }
  112.  
  113.  
  114. package_mesa_mild_compatibility-git() {
  115.  
  116. cd mesa
  117. make DESTDIR="$pkgdir" install
  118. # remove vulkan headers as they are provided by vulkan-headers package
  119. rm -rf "$pkgdir"/usr/include/vulkan/vk_platform.h "$pkgdir"/usr/include/vulkan/vulkan.h
  120.  
  121. # remove files present in libglvnd
  122. rm $pkgdir/usr/lib/libGLESv1_CM.so
  123. rm $pkgdir/usr/lib/libGLESv1_CM.so.1
  124. rm $pkgdir/usr/lib/libGLESv2.so
  125. rm $pkgdir/usr/lib/libGLESv2.so.2
  126. rm $pkgdir/usr/lib/libGLESv2.so.2.0.0
  127.  
  128. # indirect rendering
  129. ln -s /usr/lib/libGLX_mesa.so.0 ${pkgdir}/usr/lib/libGLX_indirect.so.0
  130.  
  131. install -m755 -d "$pkgdir"/usr/share/licenses/$pkgbase
  132. install -m644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgbase/
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement