From 343fde698f7453cfe6c6c9e90d8cf26a127bea46 Mon Sep 17 00:00:00 2001 From: Urs Schulz Date: Fri, 9 Nov 2018 15:58:21 +0100 Subject: [PATCH] New package: renderdoc-1.1 --- .../renderdoc/patches/getprocaddress.patch | 39 +++++++++++++++++++ srcpkgs/renderdoc/template | 30 ++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 srcpkgs/renderdoc/patches/getprocaddress.patch create mode 100644 srcpkgs/renderdoc/template diff --git a/srcpkgs/renderdoc/patches/getprocaddress.patch b/srcpkgs/renderdoc/patches/getprocaddress.patch new file mode 100644 index 0000000000..d91864d078 --- /dev/null +++ b/srcpkgs/renderdoc/patches/getprocaddress.patch @@ -0,0 +1,39 @@ +--- renderdoc/driver/gl/egl_dispatch_table.h ++++ renderdoc/driver/gl/egl_dispatch_table.h +@@ -59,13 +59,13 @@ typedef const char *(EGLAPIENTRY *PFN_eglQueryString)(EGLDisplay dpy, EGLint nam + typedef PFNEGLPOSTSUBBUFFERNVPROC PFN_eglPostSubBufferNV; + + #define EGL_HOOKED_SYMBOLS(FUNC) \ ++ FUNC(GetProcAddress, false); \ + FUNC(GetDisplay, false); \ + FUNC(CreateContext, false); \ + FUNC(DestroyContext, false); \ + FUNC(CreateWindowSurface, false); \ + FUNC(MakeCurrent, false); \ + FUNC(SwapBuffers, false); \ +- FUNC(GetProcAddress, false); \ + FUNC(PostSubBufferNV, true); + + #define EGL_NONHOOKED_SYMBOLS(FUNC) \ +--- renderdoc/driver/gl/glx_dispatch_table.h ++++ renderdoc/driver/gl/glx_dispatch_table.h +@@ -62,6 +62,8 @@ typedef void (*PFN_glTexCoord2f)(float, float); + typedef void (*PFN_glEnd)(); + + #define GLX_HOOKED_SYMBOLS(FUNC) \ ++ FUNC(glXGetProcAddress); \ ++ FUNC(glXGetProcAddressARB); \ + FUNC(glXCreateContext); \ + FUNC(glXDestroyContext); \ + FUNC(glXCreateContextAttribsARB); \ +@@ -69,9 +71,7 @@ typedef void (*PFN_glEnd)(); + FUNC(glXMakeContextCurrent); \ + FUNC(glXSwapBuffers); \ + FUNC(glXCreateWindow); \ +- FUNC(glXDestroyWindow); \ +- FUNC(glXGetProcAddress); \ +- FUNC(glXGetProcAddressARB); ++ FUNC(glXDestroyWindow); + + #define GLX_NONHOOKED_SYMBOLS(FUNC) \ + FUNC(glXGetConfig); \ diff --git a/srcpkgs/renderdoc/template b/srcpkgs/renderdoc/template new file mode 100644 index 0000000000..42564fd2c4 --- /dev/null +++ b/srcpkgs/renderdoc/template @@ -0,0 +1,30 @@ +# Template file for 'renderdoc' +pkgname=renderdoc +version=1.1 +revision=1 +build_style=cmake +configure_args="-DENABLE_GL=ON -DENABLE_GLES=ON -DENABLE_QRENDERDOC=ON +-DENABLE_RENDERDOCCMD=ON -DENABLE_VULKAN=ON -DENABLE_XCB=ON -DENABLE_XLIB=ON +-DENABLE_PYRENDERDOC=ON" +hostmakedepends="bison autoconf automake pkg-config python3" +makedepends="libX11-devel libxcb-devel xcb-util-keysyms-devel libGL qt5-devel +qt5-svg-devel qt5-x11extras-devel pcre-devel python3-devel" +short_desc="A stand-alone graphics debugging tool for Vulkan and OpenGL" +maintainer="Urs Schulz " +license="MIT" +homepage="https://github.com/baldurk/renderdoc" +distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz" +checksum=3ee45f892f6020cadb1b5604021122fa812ac807241065336db092c98472087c + +case "$XBPS_TARGET_MACHINE" in + *-musl) broken="This package uses execnfo.h which is not available on musl" +esac + +if [ -n "$CROSS_BUILD" ]; then + broken="Cross-compilation can't find python3 interpreter" +fi + + +post_install() { + vlicense LICENSE.md +}