From 0572e653236d23652eb2b4b82ced836deb79d3f4 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Mon, 22 Jul 2019 21:25:28 +0530 Subject: [PATCH] main/apitrace: new aport (!518) useful for debugging OpenGL/GLES applications. --- main/apitrace/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ main/apitrace/musl-fixes.patch | 13 +++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 main/apitrace/APKBUILD create mode 100644 main/apitrace/musl-fixes.patch diff --git a/main/apitrace/APKBUILD b/main/apitrace/APKBUILD new file mode 100644 index 000000000..7bf9a3522 --- /dev/null +++ b/main/apitrace/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Bhushan Shah +# Maintainer: Bhushan Shah +pkgname=apitrace +pkgver=8.0 +pkgrel=0 +_commit="81c73a74860a45cbc21da9925eb04e1edad646d5" +pkgdesc="Tools for tracing OpenGL, Direct3D, and other graphics APIs" +arch="all" +url="http://apitrace.github.io/" +license="MIT" +depends_dev="mesa-dev libx11-dev linux-headers" +makedepends="$depends_dev cmake python3" +source="$pkgname-$_commit.tar.gz::https://github.com/apitrace/apitrace/archive/$_commit.tar.gz + musl-fixes.patch" +subpackages="$pkgname-doc" +builddir="$srcdir/$pkgname-$_commit" + +build() { + cmake \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" make install +} +sha512sums="2c02106730e4c46c929dfa1b475691bbc72eaf232625276540ab46bbc80728f8b3d230c4297bdcbb11d8396490ed1f91ad592bb404c52fe2c63ef5840678eb32 apitrace-81c73a74860a45cbc21da9925eb04e1edad646d5.tar.gz +a204b51654d9adc484657ec68da6f89cbcdc4dd3a810d024979dcbeacffa5867d3e5ce0b40fcdc9133b36e8927d2c7672ef5c3a40db3dee0813fe2766130e21b musl-fixes.patch" diff --git a/main/apitrace/musl-fixes.patch b/main/apitrace/musl-fixes.patch new file mode 100644 index 000000000..62e393294 --- /dev/null +++ b/main/apitrace/musl-fixes.patch @@ -0,0 +1,13 @@ +diff --git a/dispatch/glproc_gl.cpp b/dispatch/glproc_gl.cpp +index 5d7903a..3d963fb 100644 +--- a/dispatch/glproc_gl.cpp ++++ b/dispatch/glproc_gl.cpp +@@ -200,7 +200,7 @@ void * _libgl_sym(const char *symbol) + * exposes symbols to it. + */ + +- _libGlHandle = _dlopen(libgl_filename, RTLD_GLOBAL | RTLD_LAZY | RTLD_DEEPBIND); ++ _libGlHandle = _dlopen(libgl_filename, RTLD_GLOBAL | RTLD_LAZY); + if (!_libGlHandle) { + os::log("apitrace: error: couldn't find libGL.so\n"); + return NULL;