summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danilo Spinella <danyspin97@protonmail.com> 2019-09-13 23:12:47 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2019-12-13 12:53:50 +0100
commitd8d7903c9578841d6c1bbf8999f797b3b457f14e (patch)
tree8129f57a8bc33aa2f520bb47c0048d5fb1ea91f7
parent8bc25f5c0ee996323ae6ac034ff2bdd33809de55 (diff)
downloadx11-DanySpin97/x11-glvnd.tar.gz
x11-DanySpin97/x11-glvnd.tar.xz
libglvnd: Bump to 1.3.0, make X support optionalDanySpin97/x11-glvnd
Thanks to https://gitlab.freedesktop.org/glvnd/libglvnd/commit/e9b5e559a12d74e42ff47e5208fcff9f71deeb9a, libglvnd can be compiled without X11 installed.
-rw-r--r--packages/dev-libs/libglvnd/libglvnd-1.3.0.exheres-0 (renamed from packages/dev-libs/libglvnd/libglvnd-1.2.0-r1.exheres-0)27
1 files changed, 18 insertions, 9 deletions
diff --git a/packages/dev-libs/libglvnd/libglvnd-1.2.0-r1.exheres-0 b/packages/dev-libs/libglvnd/libglvnd-1.3.0.exheres-0
index 8a3577e1..b8819439 100644
--- a/packages/dev-libs/libglvnd/libglvnd-1.2.0-r1.exheres-0
+++ b/packages/dev-libs/libglvnd/libglvnd-1.3.0.exheres-0
@@ -6,7 +6,9 @@
# Copyright 2013 Saleem Abdulrasool <compnerd@compnerd.org>
# Copyright 2018 Rasmus Thomsen <cogitri@exherbo.org>
-require github [ user=NVIDIA release=v${PV} suffix=tar.gz ] \
+UPLOADS_ID="d164b4e6bed74290f4d60e9a5b9bc31c"
+
+require gitlab [ prefix=https://gitlab.freedesktop.org user=glvnd ] \
alternatives
SUMMARY="Vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors"
@@ -15,30 +17,36 @@ libglvnd allows multiple drivers from different vendors to coexist on the same f
and determines which vendor to dispatch each API call to at runtime.
Both GLX and EGL are supported, in any combination with OpenGL and OpenGL ES.
"
+DOWNLOADS="https://gitlab.freedesktop.org/glvnd/${PN}/uploads/${UPLOADS_ID}/${PNV}.tar.gz"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64 ~x86"
-MYOPTIONS=""
+MYOPTIONS="X"
DEPENDENCIES="
build:
dev-lang/python:*
virtual/pkg-config
- x11-proto/xorgproto
+ X? ( x11-proto/xorgproto )
build+run:
- x11-libs/libX11
- x11-libs/libXext
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
"
DEFAULT_SRC_CONFIGURE_PARAMS=(
--enable-egl
- --enable-gles
- --enable-glx
- --enable-x11
+ --enable-gles1
+ --enable-gles2
--disable-headers
--disable-static
)
+DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
+ 'X x11'
+ 'X glx'
+)
# In an ideal world, none of this would be needed, but nvidia's legacy drivers for older GPUs do not
# support GLVND, so we need to keep the alternative for as long as we support those drivers.
@@ -55,7 +63,8 @@ src_install() {
nonfatal edo rm "${IMAGE}"/usr/${host}/lib/*.la
# alternatives
- local libs=(libGL libEGL libGLESv1_CM libGLESv2 libGLX libOpenGL libGLdispatch)
+ local libs=(libEGL libGLESv1_CM libGLESv2 libOpenGL libGLdispatch)
+ option X && libs+=(libGL libGLX)
edo mkdir "${IMAGE}"/usr/${host}/lib/opengl/