Advertisement
Guest User

cogl 1.22.2+10+g3baa2d7a with fglrx/catalyst patch

a guest
May 29th, 2017
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.25 KB | None | 0 0
  1. # $Id: PKGBUILD 274756 2016-08-27 14:41:34Z heftig $
  2. # Contributor: Ionut Biru <ibiru@archlinux.org>
  3.  
  4. pkgname=cogl
  5. pkgver=1.22.2+10+g3baa2d7a
  6. pkgrel=1.1
  7. pkgdesc="An object oriented GL/GLES Abstraction/Utility Layer"
  8. arch=('i686' 'x86_64')
  9. url="http://www.clutter-project.org/"
  10. license=('GPL2')
  11. depends=('mesa' 'libdrm' 'libxext' 'libxdamage' 'libxcomposite' 'gdk-pixbuf2' 'pango' 'libxrandr')
  12. makedepends=('gobject-introspection' 'git' 'gtk-doc')
  13. options=(!emptydirs)
  14. _commit=3baa2d7a65bc94b74d6e49392fe14e4ed65724a5  # cogl-1.22
  15. source=("git+https://git.gnome.org/browse/cogl#commit=$_commit"
  16.         cogl-driver-glsl_v2.patch)
  17. sha256sums=('SKIP'
  18.             '449c9bcdc5cec45d0cb928b6456fb37eb26f15a964fc68de9bdb5f6c23182f1e')
  19.  
  20. pkgver() {
  21.   cd $pkgname
  22.   git describe | sed 's/-/+/g'
  23. }
  24.  
  25. prepare() {
  26.   cd $pkgname
  27.   NOCONFIGURE=1 ./autogen.sh
  28. }
  29.  
  30. build() {
  31.   cd $pkgname
  32.  
  33.   patch -Np1 -i ../cogl-driver-glsl_v2.patch
  34.  
  35.   ./configure --prefix=/usr \
  36.     --enable-gles{1,2} \
  37.     --enable-{kms,wayland}-egl-platform \
  38.     --enable-wayland-egl-server
  39.  
  40.   # https://bugzilla.gnome.org/show_bug.cgi?id=655517
  41.   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  42.  
  43.   make -j1
  44. }
  45.  
  46. package() {
  47.   cd $pkgname
  48.   make DESTDIR="$pkgdir" install
  49. }
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. cogl-driver-glsl_v2.patch
  60. ------------------------------------
  61. --- 1222/cogl/driver/gl/gl/cogl-driver-gl.c 2016-10-17 18:16:05.638995324 +0200
  62. +++ 1222b/cogl/driver/gl/gl/cogl-driver-gl.c    2016-10-17 18:23:58.703175772 +0200
  63. @@ -416,9 +416,14 @@
  64.                                        &ctx->glsl_minor);
  65.      }
  66.  
  67. -  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
  68. -    /* We want to use version 120 if it is available so that the
  69. -     * gl_PointCoord can be used. */
  70. +
  71. +  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))
  72. +    ctx->glsl_version_to_use = 150;
  73. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 4))
  74. +    ctx->glsl_version_to_use = 140;
  75. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 3))
  76. +    ctx->glsl_version_to_use = 130;
  77. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
  78.      ctx->glsl_version_to_use = 120;
  79.    else
  80.      ctx->glsl_version_to_use = 110;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement